Ignore:
Timestamp:
13 Jul 2015, 08:20:23 (9 years ago)
Author:
Henrik Bettermann
Message:

Adjust logging methods in the various section.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/src/waeup/kofa/hostels/container.py

    r13165 r13166  
    5252        return
    5353
    54     logger_name = 'waeup.kofa.${sitename}.hostels'
    55     logger_filename = 'hostels.log'
    56 
    57     def logger_info(self, ob_class, target, comment=None):
    58         """Get the logger's info method.
    59         """
    60         self.logger.info('%s - %s - %s' % (
    61                 ob_class, target, comment))
    62         return
    63 
    64     def loggerInfo(self, ob_class, comment=None):
    65         target = self.__name__
    66         return self.logger_info(ob_class,target,comment)
    67 
    6854    @property
    6955    def expired(self):
     
    7864        return False
    7965
     66    logger_name = 'waeup.kofa.${sitename}.hostels'
     67    logger_filename = 'hostels.log'
     68
     69    def writeLogMessage(self, view, message):
     70        ob_class = view.__implemented__.__name__.replace('waeup.kofa.','')
     71        self.logger.info(
     72            '%s - %s - %s' % (ob_class, self.__name__, message))
     73        return
     74
    8075HostelsContainer = attrs_to_fields(HostelsContainer)
Note: See TracChangeset for help on using the changeset viewer.