Class: Log4r::Formatter
- Inherits:
-
Object
- Object
- Log4r::Formatter
- Defined in:
- lib/log4r/formatter/formatter.rb
Overview
Formatter is an abstract class and a null object
Direct Known Subclasses
Instance Method Summary collapse
-
#format(logevent) ⇒ Object
Define this method in a subclass to format data.
-
#initialize(hash = {}) ⇒ Formatter
constructor
A new instance of Formatter.
Constructor Details
#initialize(hash = {}) ⇒ Formatter
Returns a new instance of Formatter.
13 14 |
# File 'lib/log4r/formatter/formatter.rb', line 13 def initialize(hash={}) end |
Instance Method Details
#format(logevent) ⇒ Object
Define this method in a subclass to format data.
16 17 |
# File 'lib/log4r/formatter/formatter.rb', line 16 def format(logevent) end |