author | Radek Brich <radek.brich@devl.cz> |
Fri, 28 Mar 2014 14:58:12 +0100 | |
changeset 95 | 05392e369ede |
parent 92 | b97c4e25ed6d |
child 96 | 68c562e0eb1f |
permissions | -rw-r--r-- |
import sys sys.path.append('..') import logging # Setup logging logger = logging.getLogger('tuikit') logger.setLevel(logging.DEBUG) handler = logging.FileHandler(filename='tuikit.log') handler.setLevel(logging.DEBUG) formatter = logging.Formatter('%(asctime)s %(name)s %(levelname)s %(message)s') handler.setFormatter(formatter) logger.addHandler(handler)