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-- |
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) |