Skip to content

Commit

Permalink
logger: update default logging format to name_and_lineno
Browse files Browse the repository at this point in the history
  • Loading branch information
naisanzaa committed Dec 27, 2023
1 parent b89ebd1 commit cd1749f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion automon/log/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

0 comments on commit cd1749f

Please sign in to comment.