fix: logs formatter to include severity for Datadog processing

This commit is contained in:
Karol Sójko
2020-09-21 13:17:43 +02:00
parent c705b5b4db
commit 9c09492197
3 changed files with 16 additions and 0 deletions

View File

@@ -0,0 +1,10 @@
class StandardNotesFormatter < ActiveSupport::Logger::SimpleFormatter
def call(severity, timestamp, _progname, message)
{
level: severity,
time: timestamp,
message: message,
ddsource: ['ruby'],
}.to_json + "\n"
end
end