|
LDMX Software
|
Session that routes G4cout and G4cerr through the Framework logger. More...
#include <G4Session.h>
Public Member Functions | |
| LoggedSession (std::string logging_prefix="Geant4") | |
| Constructor - creates a logger named "Geant4". | |
| ~LoggedSession () override=default | |
| Destructor. | |
| G4int | ReceiveG4cout (const G4String &message) override |
| Receive a message from G4cout. | |
| G4int | ReceiveG4cerr (const G4String &message) override |
| Receive a message from G4cerr. | |
Private Attributes | |
| framework::logging::logger | the_log_ |
| Framework logger for Geant4 messages. | |
Session that routes G4cout and G4cerr through the Framework logger.
This session intercepts all Geant4 output and routes it through the Framework's logging system with the logger name "Geant4". Messages are parsed to determine appropriate log levels:
Definition at line 33 of file G4Session.h.
| simcore::LoggedSession::LoggedSession | ( | std::string | logging_prefix = "Geant4" | ) |
Constructor - creates a logger named "Geant4".
Definition at line 5 of file G4Session.cxx.
|
override |
Receive a message from G4cerr.
| message | The message from Geant4 |
Definition at line 23 of file G4Session.cxx.
|
override |
Receive a message from G4cout.
| message | The message from Geant4 |
Definition at line 8 of file G4Session.cxx.
|
mutableprivate |
Framework logger for Geant4 messages.
Definition at line 61 of file G4Session.h.