Class: DaemonKit::AbstractLogger::Formatter
- Defined in:
- lib/daemon_kit/abstract_logger.rb
Class Attribute Summary collapse
-
.format ⇒ Object
Returns the value of attribute format.
Instance Method Summary collapse
Class Attribute Details
.format ⇒ Object
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 |