mirror of
https://gitlab.com/gitlab-org/gitlab-foss.git
synced 2025-08-01 16:04:19 +00:00
15 lines
247 B
Ruby
15 lines
247 B
Ruby
# frozen_string_literal: true
|
|
|
|
require 'json'
|
|
require 'time'
|
|
|
|
module Gitlab
|
|
module PumaLogging
|
|
class JSONFormatter
|
|
def call(str)
|
|
{ timestamp: Time.now.utc.iso8601(3), pid: $$, message: str }.to_json
|
|
end
|
|
end
|
|
end
|
|
end
|