143d0e2666
This will add audit_json.log that writes one line per audit event. For example: { "severity":"INFO", "time":"2018-10-17T17:38:22.523Z", "author_id":3, "entity_id":2, "entity_type":"Project", "change":"visibility", "from":"Private", "to":"Public", "author_name":"John Doe4", "target_id":2, "target_type":"Project", "target_details":"namespace2/project2" }
9 lines
156 B
Ruby
9 lines
156 B
Ruby
# frozen_string_literal: true
|
|
|
|
module Gitlab
|
|
class AuditJsonLogger < Gitlab::JsonLogger
|
|
def self.file_name_noext
|
|
'audit_json'
|
|
end
|
|
end
|
|
end
|