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



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

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