[offlineimap] Fix syslog handler (#260)

Ben Boeckel notifications at github.com
Mon Oct 12 23:46:49 BST 2015


> +    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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/offlineimap-project/attachments/20151012/51e4b78a/attachment-0003.html>


More information about the OfflineIMAP-project mailing list