8 : the_log_{::
framework::logging::makeLogger(logging_prefix)} {}
11 std::string message = msg;
12 std::transform(message.begin(), message.end(), message.begin(), ::toupper);
14 if (message.find(
"WARNING") != std::string::npos) {
15 ldmx_log(warn) << msg;
16 }
else if (message.find(
"ERROR") != std::string::npos) {
17 ldmx_log(error) << msg;
19 ldmx_log(debug) << msg;
26 std::string message = msg;
27 std::transform(message.begin(), message.end(), message.begin(), ::toupper);
29 if (message.find(
"ERROR") != std::string::npos ||
30 message.find(
"FATAL") != std::string::npos) {
31 ldmx_log(error) << msg;
33 ldmx_log(debug) << msg;
Classes which redirect the output of G4cout and G4cerr.
LoggedSession(std::string logging_prefix="Geant4")
Constructor - creates a logger named "Geant4".
G4int ReceiveG4cout(const G4String &message) override
Receive a message from G4cout.
G4int ReceiveG4cerr(const G4String &message) override
Receive a message from G4cerr.
All classes in the ldmx-sw project use this namespace.
Dynamically loadable photonuclear models either from SimCore or external libraries implementing this ...