Changeset 13776 for main/waeup.kofa/trunk/src/waeup/kofa/utils/logger.py
- Timestamp:
- 11 Mar 2016, 11:45:01 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/utils/logger.py
r12836 r13776 78 78 from logging.handlers import WatchedFileHandler 79 79 from string import Template 80 from ulif.loghandlers import DatedRotatingFileHandler81 80 from zope import schema 82 81 from zope.component import queryUtility … … 85 84 IDataCenter, IDataCenterStorageMovedEvent, ILoggerCollector) 86 85 from waeup.kofa.utils.helpers import get_current_principal 87 88 #: Default logfile size (5 KB, not relevant for DatedRotatingFileHandlers)89 MAX_BYTES = 5 * 1024 ** 290 91 #: Default num of backup files (-1 = indefinite)92 BACKUP_COUNT = -193 86 94 87 #: Default logging level (`logging.INFO`) … … 218 211 handler = WatchedFileHandler( 219 212 filename, encoding='utf-8') 220 #handler = DatedRotatingFileHandler(221 # filename, when='MON', backupCount=BACKUP_COUNT)222 213 handler.setLevel(LEVEL) 223 214 formatter = logging.Formatter(self.logger_format_str)
Note: See TracChangeset for help on using the changeset viewer.