Class: CfnNagLogging

Inherits:
Object show all
Defined in:
lib/cfn-nag/cfn_nag_logging.rb

Class Method Summary collapse

Class Method Details

.configure_logging(opts) ⇒ Object


6
7
8
9
10
# File 'lib/cfn-nag/cfn_nag_logging.rb', line 6

def self.configure_logging(opts)
  logger = Logging.logger['log']
  logger.level = opts[:debug] ? :debug : :info
  logger.add_appenders Logging.appenders.stdout
end