demos/demobase.py
changeset 92 b97c4e25ed6d
child 96 68c562e0eb1f
equal deleted inserted replaced
91:de80e140b0ec 92:b97c4e25ed6d
       
     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)