Class: Shoes::StandardLogger

Inherits:
SimpleDelegator
  • Object
show all
Defined in:
shoes-core/lib/shoes/standard_logger.rb

Instance Method Summary collapse

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, message|
    "#{severity}: #{message}\n"
  end
  super(logger)
end