Class Logger::Formatter
In: logger.rb
Parent: Object

Methods

call   new  

Constants

Format = "%s, [%s#%d] %5s -- %s: %s\n"

Attributes

datetime_format  [RW] 

Public Class methods

[Source]

# File logger.rb, line 440
    def initialize
      @datetime_format = nil
    end

Public Instance methods

[Source]

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

[Validate]

ruby-doc.org is a service of James Britt and Happy Camper Studios, a Ruby application development company in Phoenix, AZ.

Documentation content on ruby-doc.org is provided by remarkable members of the Ruby community.

For more information on the Ruby programming language, visit ruby-lang.org.

Want to help improve Ruby's API docs? See Ruby Documentation Guidelines.