Ignore:
Timestamp:
11 Mar 2016, 11:45:01 (9 years ago)
Author:
Henrik Bettermann
Message:

Do not import deprecated DatedRotatingFileHandler?.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/src/waeup/kofa/utils/logger.py

    r12836 r13776  
    7878from logging.handlers import WatchedFileHandler
    7979from string import Template
    80 from ulif.loghandlers import DatedRotatingFileHandler
    8180from zope import schema
    8281from zope.component import queryUtility
     
    8584    IDataCenter, IDataCenterStorageMovedEvent, ILoggerCollector)
    8685from waeup.kofa.utils.helpers import get_current_principal
    87 
    88 #: Default logfile size (5 KB, not relevant for DatedRotatingFileHandlers)
    89 MAX_BYTES = 5 * 1024 ** 2
    90 
    91 #: Default num of backup files (-1 = indefinite)
    92 BACKUP_COUNT = -1
    9386
    9487#: Default logging level (`logging.INFO`)
     
    218211        handler = WatchedFileHandler(
    219212            filename, encoding='utf-8')
    220         #handler = DatedRotatingFileHandler(
    221         #    filename, when='MON', backupCount=BACKUP_COUNT)
    222213        handler.setLevel(LEVEL)
    223214        formatter = logging.Formatter(self.logger_format_str)
Note: See TracChangeset for help on using the changeset viewer.