Bases: linkcheck.logger._Logger
A text logger, colorizing the output if possible.
Informal text output format spec:
Output consists of a set of URL logs separated by one or more
blank lines.
A URL log consists of two or more lines. Each line consists of
keyword and data, separated by whitespace.
Unknown keywords will be ignored.
Initialize error counter and optional file output.
-
end_output(**kwargs)[source]
Write end of output info, and flush all output buffers.
-
init_fileoutput(args)[source]
Colorize file output if possible.
-
log_url(url_data)[source]
Write url checking info.
-
start_fileoutput()[source]
Needed to make file descriptor color aware.
-
start_output()[source]
Write generic start checking info.
-
write_base(url_data)[source]
Write url_data.base_ref.
-
write_checktime(url_data)[source]
Write url_data.checktime.
-
write_dltime(url_data)[source]
Write url_data.dltime.
-
write_id()[source]
Write unique ID of url_data.
-
write_info(url_data)[source]
Write url_data.info.
-
write_intro()[source]
Log introduction text.
-
write_modified(url_data)[source]
Write url_data.modified.
-
write_name(url_data)[source]
Write url_data.name.
-
write_outro(interrupt=False)[source]
Write end of checking message.
-
write_parent(url_data)[source]
Write url_data.parent_url.
-
write_real(url_data)[source]
Write url_data.url.
-
write_result(url_data)[source]
Write url_data.result.
-
write_size(url_data)[source]
Write url_data.size.
-
write_stats()[source]
Write check statistic info.
-
write_url(url_data)[source]
Write url_data.base_url.
-
write_warning(url_data)[source]
Write url_data.warning.
-
LoggerArgs = {'colorbase': 'purple', 'colordlsize': 'default', 'colordltime': 'default', 'colorinfo': 'default', 'colorinvalid': 'bold;red', 'colorname': 'default', 'colorparent': 'default', 'colorreal': 'cyan', 'colorreset': 'default', 'colorurl': 'default', 'colorvalid': 'bold;green', 'colorwarning': 'bold;yellow', 'filename': 'linkchecker-out.txt'}
-
LoggerName = 'text'