Skip to content

Commit

Permalink
feature: add function name to log (#380)
Browse files Browse the repository at this point in the history
  • Loading branch information
Guts authored Dec 29, 2023
2 parents 9dcaea8 + 8acfdd0 commit bb9d602
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions qgis_deployment_toolbelt/utils/journalizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ def configure_logger(verbosity: int = 1, logfile: Path = None):
if not logfile:
logging.basicConfig(
level=verbosity,
format="%(asctime)s||%(levelname)s||%(module)s||%(lineno)d||%(message)s",
format="%(asctime)s||%(levelname)s||%(module)s||%(funcName)s||%(lineno)d||%(message)s",
datefmt="%Y-%m-%d %H:%M:%S",
handlers=[log_console_handler],
)
Expand Down Expand Up @@ -117,7 +117,7 @@ def configure_logger(verbosity: int = 1, logfile: Path = None):

logging.basicConfig(
level=verbosity,
format="%(asctime)s||%(levelname)s||%(module)s||%(lineno)d||%(message)s",
format="%(asctime)s||%(levelname)s||%(module)s||%(funcName)s||%(lineno)d||%(message)s",
datefmt="%Y-%m-%d %H:%M:%S",
handlers=[log_console_handler, log_file_handler],
)
Expand Down

0 comments on commit bb9d602

Please sign in to comment.