Skip to content

Commit 925cbf3

Browse files
committed
common: Add timestamp to log entries
1 parent 8e6239c commit 925cbf3

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/gameeky/common/logger.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,10 @@
1919
import os
2020
import logging
2121

22-
logging.basicConfig()
22+
logging.basicConfig(
23+
format="%(asctime)s.%(msecs)03d - %(levelname)s - %(message)s",
24+
datefmt="%Y-%m-%d %H:%M:%S",
25+
)
2326

2427
logger = logging.getLogger("default")
2528
logger.setLevel(level=os.environ.get("LOGLEVEL", "INFO").upper())

0 commit comments

Comments
 (0)