Class: AwsAlertMonitor::Logger

Inherits:
Object
  • Object
show all
Extended by:
Forwardable
Defined in:
lib/aws-alert-monitor/logger.rb

Instance Method Summary collapse

Constructor Details

#initialize(args = {}) ⇒ Logger

Returns a new instance of Logger.



12
13
14
15
# File 'lib/aws-alert-monitor/logger.rb', line 12

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