Class: AutomationHelpers::Logger Private
- Inherits:
-
Object
- Object
- AutomationHelpers::Logger
- Defined in:
- lib/automation_helpers/logger.rb
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Class Method Summary collapse
-
.create(output = $stdout) ⇒ Object
private
Generate the Logger used in the gem.
Class Method Details
.create(output = $stdout) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Generate the Logger used in the gem
13 14 15 16 17 18 19 20 21 22 |
# File 'lib/automation_helpers/logger.rb', line 13 def self.create(output = $stdout) logger = ::Logger.new(output) logger.progname = 'Automation Helpers' logger.level = :INFO logger.formatter = proc do |severity, time, progname, msg| "#{time.strftime('%F %T')} - #{severity} - #{progname} - #{msg}\n" end logger end |