migrate snippets from gitlab

This commit is contained in:
Andreas Balogh
2024-03-14 22:17:41 +01:00
commit 5744a6efa9
5 changed files with 132 additions and 0 deletions

7
python_default_logger.py Normal file
View File

@@ -0,0 +1,7 @@
import logging
LOG=logging.getLogger()
logging.Formatter.default_time_format='%H:%M:%S'
logging.Formatter.default_msec_format='%s.%03d'
logging.basicConfig(level=logging.DEBUG, format='%(asctime)s [%(process)i] %(levelname).4s %(module)s.%(funcName)s: %(message)s'