class RSwim::Logger::LeFormatter
Public Class Methods
new(klass)
click to toggle source
Calls superclass method
# File lib/rswim/logger.rb, line 20 def initialize(klass) super() @klass = klass end
Public Instance Methods
call(severity, timestamp, progname, msg)
click to toggle source
# File lib/rswim/logger.rb, line 25 def call(severity, timestamp, progname, msg) m = String === msg ? msg : msg.inspect "#{timestamp} | #{severity} | #{@klass} | #{m}\n" end