Class: Gitlab::PumaLogging::JSONFormatter

Inherits:
Object
  • Object
show all
Defined in:
lib/gitlab/puma_logging/json_formatter.rb

Instance Method Summary collapse

Instance Method Details

#call(str) ⇒ Object


8
9
10
# File 'lib/gitlab/puma_logging/json_formatter.rb', line 8

def call(str)
  { timestamp: Time.now.utc.iso8601(3), pid: $$, message: str }.to_json
end