Class: CFnDK::CFnDKLogger
- Inherits:
-
Logger
- Object
- Logger
- CFnDK::CFnDKLogger
- Defined in:
- lib/cfndk/logger.rb
Instance Method Summary collapse
-
#initialize(options) ⇒ CFnDKLogger
constructor
A new instance of CFnDKLogger.
Constructor Details
#initialize(options) ⇒ CFnDKLogger
Returns a new instance of CFnDKLogger.
12 13 14 15 16 17 18 19 20 21 |
# File 'lib/cfndk/logger.rb', line 12 def initialize() super(STDOUT) self.level = Logger::INFO unless [:verbose] self.formatter = proc { |severity, datetime, progname, | .to_s.split(/\n/).map do |line| "#{datetime} #{severity} #{line}\n" end.join } self.datetime_format = '%Y-%m-%dT%H:%M:%S' end |