[tor-commits] [sbws/master] config: format log as usual loggers
juga at torproject.org
juga at torproject.org
Fri Dec 21 09:13:44 UTC 2018
commit 8d961e831b36394e9f9a90523779fc2f291b8ead
Author: juga0 <juga at riseup.net>
Date: Sun Dec 9 10:45:35 2018 +0000
config: format log as usual loggers
---
sbws/config.default.ini | 2 +-
sbws/config.log.default.ini | 3 +++
2 files changed, 4 insertions(+), 1 deletion(-)
diff --git a/sbws/config.default.ini b/sbws/config.default.ini
index 8abee3d..be8660b 100644
--- a/sbws/config.default.ini
+++ b/sbws/config.default.ini
@@ -112,7 +112,7 @@ to_file_level = ${level}
to_stdout_level = ${level}
to_syslog_level = ${level}
# Format string to use when logging
-format = [%(asctime)s] [%(name)s] [%(levelname)s] %(message)s
+format = %(asctime)s %(module)s[%(process)s]: <%(levelname)s> %(message)s
to_file_format = ${format}
to_stdout_format = ${format}
to_syslog_format = %(module)s[%(process)s]: <%(levelname)s> %(message)s
diff --git a/sbws/config.log.default.ini b/sbws/config.log.default.ini
index deb6275..58d9157 100644
--- a/sbws/config.log.default.ini
+++ b/sbws/config.log.default.ini
@@ -34,7 +34,10 @@ formatter=to_syslog
args = ('/dev/log',)
[formatter_to_stdout]
+# format date as syslog and journal
+datefmt = %b %d %H:%M:%S
[formatter_to_file]
+datefmt = %b %d %H:%M:%S
[formatter_to_syslog]
More information about the tor-commits
mailing list