Class: Nutella::NutellaLogging

Inherits:
Object
  • Object
show all
Includes:
Singleton
Defined in:
lib/logging/nutella_logging.rb

Instance Method Summary collapse

Constructor Details

#initializeNutellaLogging

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