author | Radek Brich <radek.brich@devl.cz> |
Fri, 28 Mar 2014 10:44:29 +0100 | |
changeset 94 | e50dae408fe9 |
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)