Class Logger::Formatter
In: lib/inactive_support/clean_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 lib/inactive_support/clean_logger.rb, line 62
      def initialize
        @datetime_format = nil
      end

Public Instance methods

[Source]

# File lib/inactive_support/clean_logger.rb, line 66
      def call(severity, time, progname, msg)
        Format % [severity[0..0], format_datetime(time), $$, severity, progname,
        msg2str(msg)]
      end

[Validate]