Class: Testcloud::Support::Logging::DefaultLogger
- Inherits:
-
Object
- Object
- Testcloud::Support::Logging::DefaultLogger
- Defined in:
- lib/testcloud/support/logging/default_logger.rb
Instance Attribute Summary collapse
-
#logger ⇒ Object
readonly
Returns the value of attribute logger.
Instance Method Summary collapse
-
#initialize ⇒ DefaultLogger
constructor
A new instance of DefaultLogger.
Constructor Details
#initialize ⇒ DefaultLogger
Returns a new instance of DefaultLogger.
10 11 12 13 14 15 16 17 |
# File 'lib/testcloud/support/logging/default_logger.rb', line 10 def initialize @logger = ::Logger.new(STDOUT) @logger.datetime_format = '%Y-%M-%d %H:%M:%S' @logger.formatter = proc do |severity, datetime, program_name, | "[#{severity}]: #{} [#{datetime}]" end self end |
Instance Attribute Details
#logger ⇒ Object (readonly)
Returns the value of attribute logger.
8 9 10 |
# File 'lib/testcloud/support/logging/default_logger.rb', line 8 def logger @logger end |