author | Radek Brich <radek.brich@devl.cz> |
Thu, 27 Mar 2014 08:03:51 +0100 | |
changeset 93 | c1e79acb9fcb |
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)