Skip to content

Commit

Permalink
Dev: log: Set the log format for crmsh.log as rfc5424
Browse files Browse the repository at this point in the history
So that the crmsh.log can include the year information.

See also: ClusterLabs#1295
  • Loading branch information
liangxin1300 committed Mar 19, 2024
1 parent 77a0cf3 commit 300dcbd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crmsh/log.py
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ def _open(self):
},
"file": {
"format": "%(asctime)s {} %(name)s: %(levelname)s: %(message)s".format(socket.gethostname()),
"datefmt": "%b %d %H:%M:%S",
"datefmt": "%Y-%m-%dT%H:%M:%S%z",
}
},
"filters": {
Expand Down

0 comments on commit 300dcbd

Please sign in to comment.