Class: Logbert::Handlers::BaseHandler
- Inherits:
-
Object
- Object
- Logbert::Handlers::BaseHandler
show all
- Defined in:
- lib/logbert/handlers/base_handler.rb
Instance Method Summary
collapse
Instance Method Details
#emit(output) ⇒ Object
22
23
24
|
# File 'lib/logbert/handlers/base_handler.rb', line 22
def emit(output)
raise NotImplementedError
end
|
14
15
16
|
# File 'lib/logbert/handlers/base_handler.rb', line 14
def formatter=(value)
@formatter = value
end
|
#publish(message) ⇒ Object
18
19
20
|
# File 'lib/logbert/handlers/base_handler.rb', line 18
def publish(message)
emit self.formatter.format(message)
end
|