linkcheck.logger.failures

A failures logger.

Classes

FailuresLogger(**kwargs)

Updates a list of failed links.

class linkcheck.logger.failures.FailuresLogger(**kwargs)[source]

Bases: _Logger

Updates a list of failed links. If a link already on the list is found to be working, it is removed. After n days we only have links on the list which failed within those n days.

Initialize with old failures data (if found).

comment(s, **args)[source]

Write nothing.

end_output(**kwargs)[source]

Write failures file.

log_url(url_data)[source]

Add invalid url to failures, delete valid url from failures.

read_failures()[source]

Read a previously stored failures from file fd.

write_failures()[source]

Write the failures file.

LoggerArgs = {'filename': '$XDG_DATA_HOME/linkchecker/failures'}
LoggerName = 'failures'