Maintenance of Ruby 2.0.0 ended on February 24, 2016. Read more

In Files

  • logger.rb

Parent

Methods

Logger::Formatter

Default formatter for log messages.

Constants

Format

Attributes

datetime_format[RW]

Public Class Methods

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

Public Instance Methods

call(severity, time, progname, msg) click to toggle source
 
               # File logger.rb, line 507
def call(severity, time, progname, msg)
  Format % [severity[0..0], format_datetime(time), $$, severity, progname,
    msg2str(msg)]
end