Class Yell::Repository
In: lib/yell/repository.rb
Parent: Object

Methods

[]   []=   __fetch__   loggers   loggers   new  

Included Modules

Singleton

Public Class methods

Get loggers from the repository

@example Get the logger

  Yell::Repository[ 'development' ]

@raise [Yell::LoggerNotFound] Raised when repository does not have that key @return [Yell::Logger] The logger instance

Set loggers in the repository

@example Set a logger

  Yell::Repository[ 'development' ] = Yell::Logger.new :stdout

@return [Yell::Logger] The logger instance

Get the list of all loggers in the repository

@return [Hash] The map of loggers

Public Instance methods

@private

Fetch the logger by the given name.

If the logger could not be found and has a superclass, it will attempt to look there. This is important for the Yell::Loggable module.

@private

[Validate]