6 : the_log_{::
framework::logging::makeLogger(logging_prefix)} {}
9 std::string message = msg;
10 std::transform(message.begin(), message.end(), message.begin(), ::toupper);
12 if (message.find(
"WARNING") != std::string::npos) {
13 ldmx_log(warn) << msg;
14 }
else if (message.find(
"ERROR") != std::string::npos) {
15 ldmx_log(error) << msg;
17 ldmx_log(debug) << msg;
24 std::string message = msg;
25 std::transform(message.begin(), message.end(), message.begin(), ::toupper);
27 if (message.find(
"ERROR") != std::string::npos ||
28 message.find(
"FATAL") != std::string::npos) {
29 ldmx_log(error) << msg;
31 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 ...