Skip to content

Commit

Permalink
PB-428: Updated json loggin format
Browse files Browse the repository at this point in the history
  • Loading branch information
ltflb-bgdi committed May 13, 2024
1 parent d4bd29b commit e230013
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion scripts/index-sync-rotate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,20 @@ json_logger() {
"logger": "'"${self}"'",
"pidTid": "'$$'",
"function": "'"${FUNCNAME[0]}"'",
"message": .
"message": .,
"event": {
"created": "'"${timestamp}"'"
},
"log": {
"level": "'"${log_level}"'",
"logger": "'"${self}"'",
"origin": {
"function": "'"${FUNCNAME[0]}"'"
}
},
"process": {
"pid": "'$$'"
}
}'
}

Expand Down

0 comments on commit e230013

Please sign in to comment.