Skip to content

06. Log Files

Eri Airlangga edited this page Mar 24, 2020 · 1 revision

Log Files

Upon completion, a /logs directory containing a log file will be created under the /websites directory. The JSON-formatted log file contains completion status of each downloaded item. If errors occured the log files can further be examined to accommodate manual download with the source URL for each item.

This log file will not be generated when using the -L or --list flag.

The generated log filename will be yoursite.com.log.json

Log File Metadata

The JSON-formatted log file contains metadata as follows:

  • ErrorMsg
    Contains the error message if error occured.
  • Num
    Line number.
  • Original
    Contains the original location of the item.
  • Source
    Contains the archived location of the item in the Internet Wayback Archive Machine. You can use the value for manually downloading.
  • Status
    Contains the HTTP status code. If flag -A is omitted and no error occured the value will be 200 (OK). If this value is empty an error might have occured. You can then consult the ErrorMsg to examine the error and use the Source to manually download the individual file.
  • Target
    Contains full path in the output directory where the file is saved. If this value is empty an error might have occured. You can then consult the ErrorMsg to examine the error and use the Source to manually download the individual file.
  • Time
    The time the Source responds to the request. The time is in yyyyMMdd hh:mm:ss .NET format and might not conform to the standard JSON datetime format.
Clone this wiki locally