Class: VCAP::Logging::Formatter::BaseFormatter
- Inherits:
-
Object
- Object
- VCAP::Logging::Formatter::BaseFormatter
- Defined in:
- lib/vcap/logging/formatter/base_formatter.rb
Overview
Formatters are responsible for taking a log record and producing a string representation suitable for writing to a sink.
Direct Known Subclasses
Instance Method Summary collapse
-
#format_record(log_record) ⇒ Object
Produces a string suitable for writing to a sink.
-
#parse_message(message) ⇒ Object
The inverse of format_record().
Instance Method Details
#format_record(log_record) ⇒ Object
Produces a string suitable for writing to a sink
15 16 17 |
# File 'lib/vcap/logging/formatter/base_formatter.rb', line 15 def format_record(log_record) raise NotImplementedError end |
#parse_message(message) ⇒ Object
The inverse of format_record()
23 24 25 |
# File 'lib/vcap/logging/formatter/base_formatter.rb', line 23 def () raise NotImplementedError end |