def setup_logging(self):
        """Set up self.logger

        This function is called after load_configuration() and after changing
        to new user/group IDs (if configured). Logging to syslog using the
        root logger is configured by default, you can override this method if
        you want something else.
        """
        self.logger = logging.getLogger()

        if os.path.exists('/dev/log'):
            handler = SysLogHandler('/dev/log')
        else:
            handler = SysLogHandler()
        self.logger.addHandler(handler)
def setup_logging ( self ) : self . logger = logging . getLogger ( ) if os . path . exists ( '/dev/log' ) : handler = SysLogHandler ( '/dev/log' ) else : handler = SysLogHandler ( ) self . logger . addHandler ( handler )
Set up self.logger

        This function is called after load_configuration() and after changing
        to new user/group IDs (if configured). Logging to syslog using the
        root logger is configured by default, you can override this method if
        you want something else.