Class | Yell::Repository |
In: |
lib/yell/repository.rb
|
Parent: | Object |
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
@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.