Commit Graph

20 Commits (0bceeca524f81640f3de53c7e50020a36428ce34)

Author SHA1 Message Date
Dmitri Bogomolov a1a8d3a05d
Fixed undesirable log_level replacement in depends 5 years ago
Dmitri Bogomolov 795b855c65
Returned logger setting to debug though slightly deduplicated 6 years ago
coffeedogs 3b75d900f6
Added: Sphinx docs, testing readthedocs integration
* Added: Sphinx configuration including readthedocs config
 * Added: Sphinx fabric task to auto-document the project
 * Fixed: Some issues in the code causing autodoc to fail when parsing
 * Added: Manual docs - structure, proof of concepts and RsT examples
 * Fixed: RsT formatting in docstrings
 * Fixed: Some adjacent minor style and lint issues
6 years ago
Dmitri Bogomolov cb0996c6c8
flake8: api, debug 6 years ago
Peter Šurda 8709051005
Fix non-ascii logging
Tested with UTF-8, KOI8-R and ISO-8859-2 encodings.
6 years ago
Peter Šurda 6c224447a6
Minor fixes that came over BM
- typo in quit confirmation dialog
- nicer traceback in unhandled exceptions
6 years ago
f97ada87 cfa84cf81a
change default log output from stdout to stderr 6 years ago
Peter Šurda fa0a3135e7
Fixes pointed out by
- missing/wrong/obsolete imports
- logger formatting
7 years ago
Peter Šurda ac348e4e6b
Fixes and refactoring
- fixes errors introduced in the earlier refactoring
- more variables moved to
- path finding functions moved to
- remembers IPv6 network unreachable (in the future can be used to skip
  IPv6 for a while)
7 years ago
Peter Šurda 114563ed2f
Default logger output UTF-8
- fixes errors when using locales other than EN
7 years ago
Peter Šurda 61a08299b8
Less confusing message when logger config missing
- if the logger config is missing, don't print unnecessary stack trace
- partially addresses #893
7 years ago
mailchuck 3f1f3e9b3b Remove default debugging
Only log errors. Can be overriden by a config file.
8 years ago
Peter Šurda 218bdf38e1 Better error reporting for log config
Fixes #174
8 years ago
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:

keys = root,syslog



keys = syslog

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

keys = syslog

format=%(asctime)s %(threadName)s %(filename)s@%(lineno)d %(message)s
datefmt=%b %d %H:%M:%S
8 years ago
Jonathan Warren e096c37f7e save debug.log in correct directory 9 years ago
Luke Montalvo 813f4c7ed9 + Add dependency list
+ Add stderr capturing
+ Add identities and network status tabs
+ Add dialogs to configure identities
+ Add color pair definitions
+ Add the '-c' flag to use the curses interface
* Reorganize imports
* Switch logger to file_only mode when running with curses
10 years ago
Jonathan Warren 08694ecc38 Portable mode moves debug.log 11 years ago
Jonathan Warren 1bf39dbfd0 moved debug.log file to the config directory 11 years ago
Gregor Robinson 2e2db97250 Don't propagate loggers; add some logging. 11 years ago
Carlos Killpack 935fe33a47 Real logging, please incorporate into new and existing code. 11 years ago