> + def __init__(self, config, loglevel = logging.INFO):
> + return super(Syslog, self).__init__(config, loglevel)
> +
> + def setup_consolehandler(self):
> + # create syslog handler
> + ch = logging.handlers.SysLogHandler('/dev/log')
> + # create formatter and add it to the handlers
> + self.formatter = logging.Formatter("%(message)s")
> + ch.setFormatter(self.formatter)
> + # add the handlers to the logger
> + self.logger.addHandler(ch)
> + self.logger.info(offlineimap.banner)
> + return ch
> +
> + def setup_sysloghandler(self):
> + pass
Override is here.
---
Reply to this email directly or view it on GitHub:
https://github.com/OfflineIMAP/offlineimap/pull/260/files#r41809496
_______________________________________________
OfflineIMAP-project mailing list: [email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/offlineimap-project
OfflineIMAP homepages:
- https://github.com/OfflineIMAP
- http://offlineimap.org