Class: Composer::ComposerLogger

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

Instance Method Summary collapse

Constructor Details

#initialize(args = {}) ⇒ ComposerLogger

Returns a new instance of ComposerLogger.



12
13
14
15
# File 'lib/composer/logger.rb', line 12

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