Skip to content

Commit

Permalink
Merge pull request #618 from geoadmin/feat-new-logging-config
Browse files Browse the repository at this point in the history
PB-428: Updated json loggin format
  • Loading branch information
rebert authored May 23, 2024
2 parents d4bd29b + e230013 commit 8f8d329
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 8f8d329

Please sign in to comment.