First off: this looks like a very useful package. Thank you for writing it!
I've started to modify the severity levels, and I'm having trouble getting it to put only the lines I want in the summary window. Below is a sample of a log file, and my config. Are my regexes incorrect somehow, or is the "summary" setting not being obeyed?
My expectation is to have the WARN and ERROR lines appear in the summary, with none of the INFO lines. But some of the INFO lines are showing up. When I turn on "summary" for INFO, they all show up, with an extra line after the red ERROR line, but they are not counted in the summary at the top.
A comment following the "enable" and "summary" lines in the default settings describing what exactly they do would be nice as well.
CameraMapper INFO: Loading exposure registry from /data/validate/hsc-reprocess/registry.sqlite3
CameraMapper INFO: Loading calib registry from /data/validate/validation_data_hsc/CALIB/calibRegistry.sqlite3
CameraMapper INFO: Loading calib registry from /data/validate/validation_data_hsc/CALIB/calibRegistry.sqlite3
jointcal.PhotometryFit WARN: FittedStar with 1 measuredStar and no refStar found as an outlier: x: -0.75442 y: 0.244364 flux: -7.58438e-07 fluxErr: 2.21969e-10 mcount: 1
jointcal.PhotometryFit WARN: FittedStar with 1 measuredStar and no refStar found as an outlier: x: 0.752806 y: 0.218323 flux: -1.14229e-07 fluxErr: 3.36851e-10 mcount: 1
jointcal.PhotometryFit WARN: FittedStar with 1 measuredStar and no refStar found as an outlier: x: 0.664753 y: 0.539066 flux: 2.51071e-06 fluxErr: 3.45118e-10 mcount: 1
jointcal.PhotometryFit WARN: FittedStar with 1 measuredStar and no refStar found as an outlier: x: -0.164897 y: 0.900303 flux: 5.4239e-07 fluxErr: 2.58476e-10 mcount: 1
jointcal.PhotometryFit INFO: findOutliers: found 4 meas outliers and 0 ref outliers
jointcal.PhotometryFit WARN: chi2 went up, skipping outlier rejection loop
jointcal.PhotometryFit INFO: Total number of outliers 12
jointcal INFO: chi2/ndof : 9.80018e+11/91482=1.07127e+07
jointcal WARN: still some ouliers but chi2 increases - retry
jointcal INFO: Updating PhotoCalib for visit: 903982, ccd: 86
jointcal INFO: Updating PhotoCalib for visit: 903982, ccd: 20
jointcal INFO: Updating PhotoCalib for visit: 903982, ccd: 57
jointcal INFO: Updating PhotoCalib for visit: 903982, ccd: 9
jointcal ERROR: photometry failed to converge after 20 steps
jointcal INFO: Updating PhotoCalib for visit: 903982, ccd: 17
jointcal INFO: Updating PhotoCalib for visit: 903982, ccd: 86
jointcal INFO: Updating PhotoCalib for visit: 903982, ccd: 20
jointcal INFO: Updating PhotoCalib for visit: 903982, ccd: 57
jointcal INFO: Updating PhotoCalib for visit: 903982, ccd: 9
{
"log_type": "compile",
"severity" : {
// error __________________________________________________
"error" : {
"enable" : true,
"summary" : true,
"pattern" : [
// [ "begin regex", "end regex" ] or [ "match regex", "" ]
[ "^Error-\\[", "^\\s*[\\n]" ], // Error-[ ~ next empty line (multi-line)
[ "^{{{LINK}}}?[^\\r\\n]*?(?i)error", "[\\r\\n]" ], // a line including case-insensitive 'error' with or without a link in front of 'error'
[ "^\\w+:\\s*\\*E", "[\\r\\n]" ], // ...: *E ... (single line)
// <-- Remove, Change, Add More Patterns Here -->
[ "^.*ERROR:", "[\\r\\n]" ] // LSST ERROR (single line)
],
"color" : {
"base" : "#FF4030", // error message
"link" : "#E6DB74", // link in error message
"quote" : "#4F99D3" // quote in error message
},
"icon" : "Danish Royalty/error.png" // remove "icon" not to use icon, "dot", "circle" "bookmark" are possible
},
// warning ________________________________________________
"warning" : {
"enable" : true,
"summary" : true,
"pattern" : [
// [ "begin regex", "end regex" ] or [ "match regex", "" ]
[ "^Warning-\\[", "^\\s*[\\n]" ], // Warning-[ ~ next empty line (multi-line)
[ "^{{{LINK}}}?[^\\r\\n]*?(?i)warning", "[\\r\\n]" ], // a line including case-insensitive 'warning' with or without a link in front of 'warning'
[ "^\\w+:\\s*\\*W", "[\\r\\n]" ], // ...: *W ... (single line)
// <-- Remove, Change, Add More Patterns Here -->
[ "^.*WARN:", "[\\r\\n]" ] // LSST WARN (single line)
],
"color" : {
"base" : "#5080f0", // warning message
"link" : "#FD971F", // link in warning message
"quote" : "#4F99D3" // quote in warning message
},
"icon" : "Danish Royalty/warning.png" // remove "icon" not to use icon, "dot", "circle" "bookmark" are possible
},
// info ___________________________________________________
"info" : {
"enable" : true,
"summary" : false,
"pattern" : [
// [ "begin regex", "end regex" ] or [ "match regex", "" ]
[ "^Information-\\[", "^\\s*[\\n]" ], // Information-[ ~ next empty line (multi-line)
[ "^\\[INFO\\]", "[\\r\\n]" ], // [INFO] ... (single line)
// <-- Remove, Change, Add More Patterns Here -->
[ "^.*INFO:", "[\\r\\n]" ] // LSST INFO: (single line)
],
"color" : {
"base" : "#859984", // info message
"link" : "#b36915", // link in info message
"quote" : "#428a99" // quote in info message
},
"icon" : "dot" // remove "icon" not to use icon, "dot", "circle" "bookmark" are possible
},
// <-- Remove, Change, Add More Severity Level Here -->
"debug" : {
"enable" : true,
"summary" : false,
"pattern" : [
// [ "begin regex", "end regex" ] or [ "match regex", "" ]
[ "^.*DEBUG:", "[\\r\\n]" ], // LSST DEBUG: (single line)
// <-- Remove, Change, Add More Patterns Here -->
],
"color" : {
"base" : "#70991f", // debug message
"link" : "#b36915", // link in debug message
"quote" : "#428a99" // quote in debug message
},
"icon" : "Koloria/help.png" // remove "icon" not to use icon, "dot", "circle" "bookmark" are possible
},
}
}