In Files

  • logger/formatter.rb

Parent

Methods

Class/Module Index [+]

Quicksearch

Logger::Formatter

Default formatter for log messages.

Attributes

datetime_format[RW]

Public Class Methods

new() click to toggle source
 
               # File logger/formatter.rb, line 11
def initialize
  @datetime_format = nil
end
            

Public Instance Methods

call(severity, time, progname, msg) click to toggle source
 
               # File logger/formatter.rb, line 15
def call(severity, time, progname, msg)
  Format % [severity[0..0], format_datetime(time), Process.pid, severity, progname,
    msg2str(msg)]
end