Method: Logging::Repository#fetch
- Defined in:
- lib/logging/repository.rb
#fetch(key) ⇒ Object
call-seq:
fetch( name )
Returns the Logger named name. An KeyError will be raised if the logger does not exist.
When name is a String or a Symbol it will be used “as is” to retrieve the logger. When name is a Class the class name will be used to retrieve the logger. When name is an object the name of the object’s class will be used to retrieve the logger.
81 |
# File 'lib/logging/repository.rb', line 81 def fetch( key ) @h.fetch(to_key(key)) end |