Coverage for /Users/jerry/Development/yenta/yenta/config/logging.py: 0%
Shortcuts on this page
r m x toggle line displays
j k next/prev highlighted chunk
0 (zero) top of page
1 (one) first highlighted chunk
Shortcuts on this page
r m x toggle line displays
j k next/prev highlighted chunk
0 (zero) top of page
1 (one) first highlighted chunk
1import logging
3logger = logging.getLogger('yenta')
4logger.setLevel(logging.INFO)
6formatter = logging.Formatter('%(asctime)s - %(name)s - %(levelname)s - %(message)s')
8ch = logging.StreamHandler()
9ch.setLevel(logging.DEBUG)
10ch.setFormatter(formatter)
12logger.addHandler(ch)