Class: Nutella::NutellaLogging
- Inherits:
-
Object
- Object
- Nutella::NutellaLogging
- Includes:
- Singleton
- Defined in:
- lib/logging/nutella_logging.rb
Instance Method Summary collapse
-
#initialize ⇒ NutellaLogging
constructor
A new instance of NutellaLogging.
- #logger(name) ⇒ Object
Constructor Details
#initialize ⇒ NutellaLogging
Returns a new instance of NutellaLogging.
10 11 12 13 14 |
# File 'lib/logging/nutella_logging.rb', line 10 def initialize console = NutellaLogger.new('console') log = NutellaLoggerRemote.new('log') @loggers = {:log => log, :console => console} end |
Instance Method Details
#logger(name) ⇒ Object
16 17 18 |
# File 'lib/logging/nutella_logging.rb', line 16 def logger(name) @loggers[name] end |