Mike Fährmann
11d3247c85
use 'util.Formatter' when formatting logging output
4 years ago
Mike Fährmann
4bc161ca0f
prevent crash when sys.stdout and co. are None ( #653 )
5 years ago
Mike Fährmann
5cdf1b1319
fix --verbose/--quiet
...
caused by 383795b
5 years ago
Mike Fährmann
383795b550
prevent superfluous calls to Logger.makeRecord()
...
… by setting an appropriate minimal logging level for the root Logger.
5 years ago
Mike Fährmann
f5604492c3
update interface of config functions
5 years ago
Mike Fährmann
15e4ddf46d
implement custom logging formatter
...
supports custom log message formats for each loglevel and, by
extension, custom ANSI codes and colors for errors and warnings
(#304 )
5 years ago
Mike Fährmann
ae353ed3b0
provide "extractor" and "job" keys for logging output
...
This allows for stuff like "{extractor.url}" and "{extractor.category}"
in logging format strings.
Accessing 'extractor' and 'job' in any way will return "None" if those
fields aren't defined, i.e. in general logging messages.
6 years ago
Mike Fährmann
4810d446bb
remove the obsolete safeprint() and error() functions
...
- safeprint() was used to print values which might have caused a
UnicodeEncodeError, but that is no longer necessary (0381ae5
)
- errors are now handled via logging output (f94e370
)
7 years ago
Mike Fährmann
79bcaa8726
improve downloader retry behavior
...
- only retry download on 5xx and 429 status codes
- immediately fail on 4xx status codes
7 years ago
Mike Fährmann
701c016b97
add '-q/--quiet' option
8 years ago
Mike Fährmann
8d5f26d530
small fixes to the output module
8 years ago
Mike Fährmann
4f123b8513
code adjustments according to pep8
8 years ago
Mike Fährmann
91c446805b
replace platform.system() with os.name
8 years ago
Mike Fährmann
810aa4e146
add a space after status indicators
9 years ago
Mike Fährmann
b2401542eb
implement output.mode and .shorten options
9 years ago
Mike Fährmann
8d257510d0
rework output module
9 years ago
Mike Fährmann
d26eec8470
workarounds for windows console
9 years ago
Mike Fährmann
c786843a6f
add output-module
9 years ago