diff --git a/logging b/logging index 5943118..250359c 100644 --- a/logging +++ b/logging @@ -53,8 +53,8 @@ formatter = full [formatter_simple] # Simple output format -format = %(message)s +format = [%(thread)x] %(levelname)s: %(message)s [formatter_full] # Full output format -format = %(asctime)s - %(thread)d - %(levelname)s: %(message)s +format = %(asctime)s - [%(thread)x] %(levelname)s: %(message)s diff --git a/radicale/log.py b/radicale/log.py index 34d4e4c..f550b48 100644 --- a/radicale/log.py +++ b/radicale/log.py @@ -56,7 +56,8 @@ def start(name="radicale", filename=None, debug=False): "Logging configuration file '%s' not found, using stderr." % filename) handler = logging.StreamHandler(sys.stderr) - handler.setFormatter(logging.Formatter("%(message)s")) + handler.setFormatter( + logging.Formatter("[%(thread)x] %(levelname)s: %(message)s")) logger.addHandler(handler) if debug: logger.setLevel(logging.DEBUG)