Skip to content

Logging

Arttu Kivimäki requested to merge logging into main

Clearer logging. Log files are named based on input file or directory and timestamp. Inputs are shown one per row for clarity. Processing phases are more separated and files to handled are named.

Old log file: 20220608-132759.log

New log file (for a folder) EODIE_test_2022-06-07.log

Timestamp on folder level processing is limited to date. All logging data from the folder from that date will go to same file.

Pros: Only one logfile from processing the whole directory.

Cons: If directory-level processing is repeated during the same day, file is not overwritten but appended with the new log info.

New log file (for a single file) S2A_MSIL2A_20200202T095221_N9999_R079_T35VLJ_20210706T151624_2022-06-08_15-25-14.log

Timestamp includes exact time for processing as in the previous format. File name to be processed is now included in the file name.

Pros: Easier to find processing logs for individual files.

Cons:

Overall differences:

  • There's a gap between INFO:root and the actual log message
  • All inputs are listed as separate rows instead of a dict
  • Processing phases refer to file names that are being handled => Easier to troubleshoot in case something goes wrong
  • Status updates of the processing phases (Starting X...)
Edited by Arttu Kivimäki

Merge request reports