Ignore:
Timestamp:
5 Dec 2012, 08:32:11 (12 years ago)
Author:
Henrik Bettermann
Message:

Ease customization of logging format. We use this for the new payments logger.

Do not show payments.log on logfile search page.

File:
1 edited

Legend:

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

    r8608 r9769  
    157157    #: replaced by the actual used site name.
    158158    logger_name = 'waeup.kofa.${sitename}'
     159
     160    #: The format to use when logging.
     161    logger_format_str = '%(asctime)s - %(levelname)s - %(user)s - %(message)s'
     162
    159163    implements(ILogger)
    160164
     
    214218            filename, when='MON', backupCount=BACKUP_COUNT)
    215219        handler.setLevel(LEVEL)
    216         formatter = logging.Formatter(
    217             '%(asctime)s - %(levelname)s - %(user)s - %(message)s')
     220        formatter = logging.Formatter(self.logger_format_str)
    218221        handler.setFormatter(formatter)
    219222
Note: See TracChangeset for help on using the changeset viewer.