Class: Log4r::Formatter

Inherits:
Object
  • Object
show all
Defined in:
lib/log4r-color/formatter/formatter.rb

Overview

Formatter is an abstract class and a null object

Direct Known Subclasses

ObjectFormatter, SimpleFormatter

Instance Method Summary collapse

Constructor Details

#initialize(hash = {}) ⇒ Formatter

Returns a new instance of Formatter.



13
14
# File 'lib/log4r-color/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-color/formatter/formatter.rb', line 16

def format(logevent)
end