author | Radek Brich <radek.brich@devl.cz> |
Wed, 26 Mar 2014 21:26:39 +0100 | |
changeset 92 | b97c4e25ed6d |
child 96 | 68c562e0eb1f |
permissions | -rw-r--r-- |
92 | 1 |
import sys |
2 |
sys.path.append('..') |
|
3 |
||
4 |
import logging |
|
5 |
||
6 |
# Setup logging |
|
7 |
logger = logging.getLogger('tuikit') |
|
8 |
logger.setLevel(logging.DEBUG) |
|
9 |
handler = logging.FileHandler(filename='tuikit.log') |
|
10 |
handler.setLevel(logging.DEBUG) |
|
11 |
formatter = logging.Formatter('%(asctime)s %(name)s %(levelname)s %(message)s') |
|
12 |
handler.setFormatter(formatter) |
|
13 |
logger.addHandler(handler) |