class RuGUI::LogSupport::Formatter
Public Class Methods
new(classname = nil)
click to toggle source
# File lib/rugui/log_support.rb, line 29 def initialize(classname = nil) @classname = classname end
Public Instance Methods
call(severity, timestamp, progname, msg)
click to toggle source
# File lib/rugui/log_support.rb, line 33 def call(severity, timestamp, progname, msg) timestamp = timestamp.strftime(RuGUI.configuration.logger[:format] || "%Y-%m-%d %H:%M:%S") "#{timestamp} (#{severity}) (#{@classname}) #{msg}\n" end