DUNE-DAQ / drunc

Dune RUN Control (DRUNC) is the run control for the DUNE experiment
1 stars 1 forks source link

Pawel plesniak/pm logs #315

Open PawelPlesniak opened 6 days ago

PawelPlesniak commented 6 days ago

Defining a logger for the pm in the base class. Tested to be working with unified-shell and process-manager-shell.

PawelPlesniak commented 6 days ago

Note - I wanted to plug this into update_log_level but I think there may be a problem with the hierarchy of the loggers - I could not show a RichHanlder instance after running update_log_level, creating a logger, and dumping its handlers even if using a name following the update_log_level logger as e.g. drunc.process_manager

PawelPlesniak commented 6 days ago

Also what is the difference between self.log and self._log?

PawelPlesniak commented 4 days ago

This now creates a log file for the ProcessManager. There is some cleanup that needs to happen with logging, which will be addressed in a seperate PR, namely