dnet40/modules/dli-service-portal/trunk/logger.py @ 57805
1 |
import logging |
---|---|
2 |
|
3 |
dlilogger = logging.getLogger('dli') |
4 |
hdlr = logging.FileHandler('dli.log') |
5 |
formatter = logging.Formatter('%(asctime)s %(levelname)s %(message)s') |
6 |
hdlr.setFormatter(formatter) |
7 |
dlilogger.addHandler(hdlr) |
8 |
dlilogger.setLevel(logging.WARNING) |