As suggested by @lpetre, the logging for the monitoring code is now added to the xml with the ability to turn it on and off (doWriteLog
), change where the logs are saved (logPath
), and number of updates before writing the logs (logUpdateInterval
). There are default values for all of these, (the default being no log files), so not including these tags in the xml for running the xdaq won't stop the code.
Currently, the logs are saved in different files for each AMC. A quality of life increase might be creating a folder for each Shelf and run and putting the logs into those folders to make things a bit cleaner (eg shelf1_Y-m-d_run#/amc#_H:M:S.gz
) and maybe event further bifurcation of subfolders for each amc (eg shelf1_Y-m-d_run#/amc#/H:M:S.gz
). This can hopefully be discussed more in this MR.
Closes #99 (closed)
Ran the code in my area and reproduces the logs as intended.
The default value is set to /var/log/gemdaq/
, but since only certain people has write access, that's probably why this wan't caught earlier (all the logs are made by Misha and Laurent and I never created logs when it pointed to /var/log/gemdaq
). Because of this, we might want to change the default write directory.