Class: Logger::Formatter (Ruby 2.3.4)

In Files

  • logger.rb

Parent

Methods

Class/Module Index [+]

Quicksearch

Logger::Formatter

Default formatter for log messages.

Constants

Format

Attributes

datetime_format[RW]

Public Class Methods

new()
 
               # File logger.rb, line 556
def initialize
  @datetime_format = nil
end
            

Public Instance Methods

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