Changeset 9988 for main/waeup.kofa/trunk/src/waeup/kofa/utils/logger.py
- Timestamp:
- 24 Feb 2013, 13:42:04 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/utils/logger.py
r9769 r9988 76 76 import grok 77 77 import logging 78 from logging.handlers import WatchedFileHandler 78 79 from string import Template 79 80 from ulif.loghandlers import DatedRotatingFileHandler … … 215 216 216 217 # Create a rotating file handler logger. 217 handler = DatedRotatingFileHandler( 218 filename, when='MON', backupCount=BACKUP_COUNT) 218 handler = WatchedFileHandler( 219 filename, encoding='utf-8') 220 #handler = DatedRotatingFileHandler( 221 # filename, when='MON', backupCount=BACKUP_COUNT) 219 222 handler.setLevel(LEVEL) 220 223 formatter = logging.Formatter(self.logger_format_str)
Note: See TracChangeset for help on using the changeset viewer.