From cd1749f068db3a9dc82f7601ba89b043aaa6f616 Mon Sep 17 00:00:00 2001 From: naisanzaa Date: Wed, 27 Dec 2023 11:22:20 +0800 Subject: [PATCH] logger: update default logging format to name_and_lineno --- automon/log/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/automon/log/__init__.py b/automon/log/__init__.py index 0c6820da..196f4921 100755 --- a/automon/log/__init__.py +++ b/automon/log/__init__.py @@ -2,5 +2,5 @@ from .logger import Logging, LogStream, TEST, DEBUG, INFO, WARN, ERROR, CRITICAL, NOTSET from .logger import logging -log_format = f'{LogRecordAttribute(timestamp=True).levelname().name().funcName().message()}' +log_format = f'{LogRecordAttribute(timestamp=True).levelname().name_and_lineno().funcName().message()}' logging.basicConfig(level=DEBUG, format=log_format)