Class: Shoes::StandardLogger
- Inherits:
-
SimpleDelegator
- Object
- SimpleDelegator
- Shoes::StandardLogger
- Defined in:
- shoes-core/lib/shoes/standard_logger.rb
Instance Method Summary collapse
-
#initialize(device = STDERR) ⇒ StandardLogger
constructor
A new instance of StandardLogger.
Constructor Details
#initialize(device = STDERR) ⇒ StandardLogger
Returns a new instance of StandardLogger.
7 8 9 10 11 12 13 |
# File 'shoes-core/lib/shoes/standard_logger.rb', line 7 def initialize(device = STDERR) logger = ::Logger.new(device) logger.formatter = proc do |severity, _datetime, _progname, | "#{severity}: #{}\n" end super(logger) end |