16 lines
293 B
Python
16 lines
293 B
Python
# -*- coding: utf-8 -*-
|
|
|
|
import logging
|
|
|
|
logger = logging.getLogger('tsstats')
|
|
logger.setLevel(logging.INFO)
|
|
|
|
fh = logging.FileHandler('debug.txt', 'w', delay=True)
|
|
fh.setLevel(logging.DEBUG)
|
|
|
|
ch = logging.StreamHandler()
|
|
ch.setLevel(logging.INFO)
|
|
|
|
logger.addHandler(fh)
|
|
logger.addHandler(ch)
|