Class: Logger::Formatter
- Defined in:
- lib/gems/activesupport-2.2.2/lib/active_support/core_ext/logger.rb
Direct Known Subclasses
Constant Summary collapse
- Format =
"%s, [%s#%d] %5s -- %s: %s\n"
Instance Attribute Summary collapse
-
#datetime_format ⇒ Object
Returns the value of attribute datetime_format.
Instance Method Summary collapse
- #call(severity, time, progname, msg) ⇒ Object
-
#initialize ⇒ Formatter
constructor
A new instance of Formatter.
Constructor Details
#initialize ⇒ Formatter
Returns a new instance of Formatter.
78 79 80 |
# File 'lib/gems/activesupport-2.2.2/lib/active_support/core_ext/logger.rb', line 78 def initialize @datetime_format = nil end |
Instance Attribute Details
#datetime_format ⇒ Object
Returns the value of attribute datetime_format.
76 77 78 |
# File 'lib/gems/activesupport-2.2.2/lib/active_support/core_ext/logger.rb', line 76 def datetime_format @datetime_format end |