Class: DaemonKit::AbstractLogger::Formatter

Inherits:
Object
  • Object
show all
Defined in:
lib/daemon_kit/abstract_logger.rb

Class Attribute Summary collapse

Instance Method Summary collapse

Class Attribute Details

.formatObject

Returns the value of attribute format.



235
236
237
# File 'lib/daemon_kit/abstract_logger.rb', line 235

def format
  @format
end

Instance Method Details

#call(severity, time, progname, msg) ⇒ Object



238
239
240
# File 'lib/daemon_kit/abstract_logger.rb', line 238

def call(severity, time, progname, msg)
  self.class.format % [ format_time( time ), progname, $$, severity, msg.to_s ]
end