LDMX-Software / ldmx-sw

The Light Dark Matter eXperiment simulation and reconstruction framework.
https://ldmx-software.github.io
GNU General Public License v3.0
22 stars 20 forks source link

Allow setting of log level for a processor #922

Closed omar-moreno closed 1 month ago

omar-moreno commented 4 years ago

Is your feature request related to a problem? Please describe. Currently, the log level can only be set globally. This is an issue when trying to debug a processor because messages from all other processors are also printed. It would be useful to set the log level such that it only applies to a given processor.

tomeichlersmith commented 4 years ago

@bryngemark I can handle the core framework stuff and loop you in after that is completed. I won't start on this until after the structural changes for v3.0.0 go in.

bryngemark commented 4 years ago

@tomeichlersmith Sounds good!

tomeichlersmith commented 2 months ago

https://github.com/LDMX-Software/ldmx-sw/issues/1409#issuecomment-2311040238

tomeichlersmith commented 2 months ago

This is related to #1301 - in the sense that both would touch the same code files.

I would also be interested in moving logging::open as early as possible, specifically before any of the processors are created so that the ldmx_log messages are directed to the file/terminal as configured. Right now, logging::open doesn't happen until after the processors are configured which means the logging messages in configure overrides are not formatted the same way and are not directed to a log file if one is specified.