Class: LogrageTagged::TaggedKeyValueFormatter

Inherits:
Lograge::Formatters::KeyValue
  • Object
show all
Defined in:
lib/lograge_tagged.rb

Instance Method Summary collapse

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