Skip to content

Commit

Permalink
Improve logging format
Browse files Browse the repository at this point in the history
  • Loading branch information
SylviaWhittle committed Nov 23, 2023
1 parent a465a26 commit 404c26a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions topofileformats/logging.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
logger.add(
sys.stderr,
colorize=True,
format="<blue>{time:HH:mm:ss}</blue> | <green>{file}</green>:<green>{module}</green>:<green>"
"{function}</green>:<green>{line}</green> | <level>{message}</level>",
format="<blue>{time:HH:mm:ss}</blue> | <level>{level}</level> |"
"<magenta>{file}</magenta>:<magenta>{module}</magenta>:<magenta>"
"{function}</magenta>:<magenta>{line}</magenta> | <level>{message}</level>",
)

0 comments on commit 404c26a

Please sign in to comment.