Class: Logbert::Handlers::BaseHandler
- Inherits:
-
Object
- Object
- Logbert::Handlers::BaseHandler
- Defined in:
- lib/logbert/handlers.rb
Direct Known Subclasses
Instance Method Summary collapse
Instance Method Details
#emit(output) ⇒ Object
23 24 25 |
# File 'lib/logbert/handlers.rb', line 23 def emit(output) raise NotImplementedError end |
#formatter ⇒ Object
10 11 12 |
# File 'lib/logbert/handlers.rb', line 10 def formatter @formatter ||= Logbert::Formatters::SimpleFormatter.new end |
#formatter=(value) ⇒ Object
14 15 16 |
# File 'lib/logbert/handlers.rb', line 14 def formatter=(value) @formatter = value end |
#publish(message) ⇒ Object
18 19 20 |
# File 'lib/logbert/handlers.rb', line 18 def publish() emit self.formatter.format() end |