2016-06-07 11:42:53 -04:00
|
|
|
# -*- coding: utf-8 -*-
|
|
|
|
|
2016-05-10 16:50:34 -04:00
|
|
|
import logging
|
|
|
|
|
|
|
|
logger = logging.getLogger('tsstats')
|
|
|
|
logger.setLevel(logging.INFO)
|
|
|
|
|
2016-08-08 16:10:30 -04:00
|
|
|
fh = logging.FileHandler('debug.txt', 'w', delay=True)
|
2016-05-10 16:50:34 -04:00
|
|
|
fh.setLevel(logging.DEBUG)
|
|
|
|
|
|
|
|
ch = logging.StreamHandler()
|
|
|
|
ch.setLevel(logging.INFO)
|
|
|
|
|
|
|
|
logger.addHandler(fh)
|
|
|
|
logger.addHandler(ch)
|