implement separate loggers for modules
For more fine grained control of the logging output we want to use separate loggers for physics modules.
A logger is created like this (in the case of the Epos interaction module):
std::shared_ptr<spdlog::logger> logger_ = get_logger("corsika_epos_Interaction");
It can be used by calling:
CORSIKA_LOGGER_DEBUG(logger, "A compile-time removable log message!");
For more information see Logging guidelines.
Candidates for separate loggers are:
-
PROPOSAL module (depending on the cuts this is one of the most called modules), maybe separate loggers for continuous and stochastic? -
ParticleCut -
RadioProcess (possibly separate loggers for different sub-modules (algorithm, antennas..)?) -
tracking -
thinning
but really anything in corsika/modules/