Class: Stackster::StacksterLogger

Inherits:
Object
  • Object
show all
Extended by:
Forwardable
Defined in:
lib/stackster/logger.rb

Instance Method Summary collapse

Constructor Details

#initialize(args = {}) ⇒ StacksterLogger

Returns a new instance of StacksterLogger.



10
11
12
13
# File 'lib/stackster/logger.rb', line 10

def initialize(args = {})
  @log_level = args[:log_level] ||= 'info'
  @logger    = args[:logger] ||= new_logger(args)
end