maidstone-hackspace/website/config/logger.py

11 lines
293 B
Python

import os
import logging
log = logging.getLogger('Maidstone Hackspace')
log.setLevel(logging.DEBUG)
#~ log.propagate = False
if os.path.exists('/tmp/maidstone_hackspace.log'):
ch = logging.FileHandler('/tmp/maidstone_hackspace.log')
ch.setLevel(logging.DEBUG)
log.addHandler(ch)