Class: Applicaster::Logger::Formatter
- Inherits:
-
Logger::Formatter
- Object
- Logger::Formatter
- Applicaster::Logger::Formatter
- Includes:
- LogStashLogger::TaggedLogging::Formatter
- Defined in:
- lib/applicaster/logger/formatter.rb
Instance Attribute Summary collapse
-
#default_fields ⇒ Object
Returns the value of attribute default_fields.
Instance Method Summary collapse
- #call(severity, time, progname, message) ⇒ Object
-
#initialize(options = {}) ⇒ Formatter
constructor
A new instance of Formatter.
Constructor Details
#initialize(options = {}) ⇒ Formatter
Returns a new instance of Formatter.
14 15 16 17 |
# File 'lib/applicaster/logger/formatter.rb', line 14 def initialize( = {}) @default_fields = .dup @datetime_format = nil end |
Instance Attribute Details
#default_fields ⇒ Object
Returns the value of attribute default_fields.
12 13 14 |
# File 'lib/applicaster/logger/formatter.rb', line 12 def default_fields @default_fields end |
Instance Method Details
#call(severity, time, progname, message) ⇒ Object
19 20 21 |
# File 'lib/applicaster/logger/formatter.rb', line 19 def call(severity, time, progname, ) build_event(, severity, time) end |