Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View m3adow's full-sized avatar
🌻

Till Wiese m3adow

🌻
View GitHub Profile
@m3adow
m3adow / A.py
Last active August 29, 2015 14:19
Logging - How does it work?
import logging
LOG = logging.getLogger('A')
ch = logging.StreamHandler()
formatter = logging.Formatter('%(asctime)s %(levelname)s %(name)s: %(message)s')
ch.setFormatter(formatter)
LOG.addHandler(ch)
LOG.setLevel("DEBUG")
from functions import common_functions