changeset 92 | b97c4e25ed6d |
child 96 | 68c562e0eb1f |
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/demos/demobase.py Wed Mar 26 21:26:39 2014 +0100 @@ -0,0 +1,13 @@ +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)