Class: LogrageTagged::TaggedKeyValueFormatter
- Inherits:
-
Lograge::Formatters::KeyValue
- Object
- Lograge::Formatters::KeyValue
- LogrageTagged::TaggedKeyValueFormatter
- Defined in:
- lib/lograge_tagged.rb
Instance Method Summary collapse
- #call(data) ⇒ Object
-
#initialize(tag = "request.app") ⇒ TaggedKeyValueFormatter
constructor
A new instance of TaggedKeyValueFormatter.
Constructor Details
#initialize(tag = "request.app") ⇒ TaggedKeyValueFormatter
Returns a new instance of TaggedKeyValueFormatter.
6 7 8 |
# File 'lib/lograge_tagged.rb', line 6 def initialize(tag = "request.app") @tag = tag end |
Instance Method Details
#call(data) ⇒ Object
9 10 11 |
# File 'lib/lograge_tagged.rb', line 9 def call(data) "[#{@tag}] #{super}" end |