This repository has been archived on 2025-02-18. You can view files and clone it, but cannot push or open issues or pull requests.
mailchuck 231219a193 Improved logging
Fixes #118

- changed almost all "print" into logger
- threads have nicer names
- logger can have configuration in "logger.dat" in the same directory as
"keys.dat", and the logger will pick the one named "default" to replace
the "console" and "file" that are in PyBitmessage otherwise

Example file for logging to syslog:

[loggers]
keys = root,syslog

[logger_root]
level=NOTSET
handlers=syslog

[logger_syslog]
level=DEBUG
handlers=syslog
qualname=default

[handlers]
keys = syslog

[handler_syslog]
class = handlers.SysLogHandler
formatter = syslog
level = DEBUG
args=(('localhost', handlers.SYSLOG_UDP_PORT),
handlers.SysLogHandler.LOG_LOCAL7)

[formatters]
keys = syslog

[formatter_syslog]
format=%(asctime)s %(threadName)s %(filename)s@%(lineno)d %(message)s
datefmt=%b %d %H:%M:%S
2016-05-02 15:00:21 +02:00
..
2016-05-02 15:00:21 +02:00
2016-05-02 15:00:20 +02:00
2013-11-01 19:28:44 -04:00
2015-03-27 15:25:32 -04:00
2013-04-01 20:23:32 +01:00
2016-05-02 15:00:20 +02:00
2016-05-02 15:00:21 +02:00
2016-05-02 15:00:17 +02:00
2016-05-02 15:00:21 +02:00
2016-05-02 15:00:21 +02:00
2015-01-08 17:11:30 -05:00
2016-05-02 15:00:21 +02:00
2016-05-02 15:00:21 +02:00
2016-05-02 15:00:21 +02:00
2016-05-02 15:00:21 +02:00
2016-05-02 15:00:21 +02:00
2016-05-02 15:00:21 +02:00
2016-05-02 15:00:21 +02:00
2016-05-02 15:00:21 +02:00
2016-05-02 15:00:21 +02:00
2016-05-02 15:00:21 +02:00
2014-05-02 18:47:50 +02:00
2015-03-09 02:35:32 -04:00
2013-09-02 23:14:43 -04:00
2016-05-02 15:00:20 +02:00
2015-03-27 15:25:32 -04:00
2014-08-28 13:39:40 +02:00
2013-09-04 12:53:18 -04:00
2016-05-02 15:00:20 +02:00
2016-05-02 15:00:21 +02:00
2013-09-06 13:41:24 -04:00
2016-05-02 15:00:17 +02:00