Skip to content

Latest commit

 

History

History
14 lines (11 loc) · 350 Bytes

python_logging.md

File metadata and controls

14 lines (11 loc) · 350 Bytes

Python log facility

import logging,sys
logging.basicConfig(format='%(asctime)s.%(msecs)03d | %(module)s.py : %(message)s', 
                    stream=sys.stdout, 
                    level=logging.INFO,
                    datefmt='%Y-%m-%d %H:%M:%S')
log = logging.getLogger(__name__).info

# [...]

log(f"blalbalba {foobar} ...")