Skip to content

Commit

Permalink
CPI-769 use json field key "message" for log messages
Browse files Browse the repository at this point in the history
  • Loading branch information
Roxana Meixner committed Jun 8, 2022
1 parent 2710889 commit 25f3bb4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion main/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,11 @@ func main() {
}
}

log.SetFormatter(&log.JSONFormatter{})
log.SetFormatter(&log.JSONFormatter{
FieldMap: log.FieldMap{
log.FieldKeyMsg: "message",
},
})
log.Printf("UBIRCH client (version=%s, revision=%s)", Version, Revision)
auditlogger.SetServiceName(serviceName)

Expand Down

0 comments on commit 25f3bb4

Please sign in to comment.