Class: SemanticLogger::Formatters::Loki
- Defined in:
- lib/semantic_logger/formatters/loki.rb
Constant Summary
Constants inherited from Base
Base::CONTROL_CHARS, Base::CONTROL_CHAR_ESCAPES, Base::PRECISION
Instance Attribute Summary collapse
-
#payload_value ⇒ Object
Returns the value of attribute payload_value.
-
#stream ⇒ Object
Returns the value of attribute stream.
Attributes inherited from Base
#escape_control_chars, #log, #log_application, #log_environment, #log_host, #logger, #precision, #time_format
Instance Method Summary collapse
-
#batch(logs, logger) ⇒ Object
Returns [String] a JSON batch of logs.
-
#call(log, logger) ⇒ Object
Returns [String] a single JSON log.
Methods inherited from Base
build_time_format, #initialize, #pid
Constructor Details
This class inherits a constructor from SemanticLogger::Formatters::Base
Instance Attribute Details
#payload_value ⇒ Object
Returns the value of attribute payload_value.
6 7 8 |
# File 'lib/semantic_logger/formatters/loki.rb', line 6 def payload_value @payload_value end |
#stream ⇒ Object
Returns the value of attribute stream.
6 7 8 |
# File 'lib/semantic_logger/formatters/loki.rb', line 6 def stream @stream end |