allpix::G4LoggingDestination
Log message sink for Geant4 output streams. More…
#include <G4LoggingDestination.hpp>
Inherits from G4UIsession
Public Functions
Name | |
---|---|
G4LoggingDestination * | getInstance() |
void | setG4coutReportingLevel(LogLevel level) |
void | setG4cerrReportingLevel(LogLevel level) |
LogLevel | getG4coutReportingLevel() |
LogLevel | getG4cerrReportingLevel() |
G4int | ReceiveG4cout(const G4String & msg) override |
G4int | ReceiveG4cerr(const G4String & msg) override |
Detailed Description
class allpix::G4LoggingDestination;
Log message sink for Geant4 output streams.
This singleton class forwards Geant4 log messages to the framework logger on two configurable verbosity levels, one for the cerr (error) stream, the other for the standard cout stream.
Public Functions Documentation
function getInstance
static inline G4LoggingDestination * getInstance()
Return: G4LoggingDestination instance
Method to obtain the singleton object
function setG4coutReportingLevel
static void setG4coutReportingLevel(
LogLevel level
)
Parameters:
- level Log level
Method to set the logger verbosity level for the cout stream
function setG4cerrReportingLevel
static void setG4cerrReportingLevel(
LogLevel level
)
Parameters:
- level Log level
Method to set the logger verbosity level for the cerr stream
function getG4coutReportingLevel
static LogLevel getG4coutReportingLevel()
Return: Log level
Method to obtain the current logger verbosity level for the cout stream
function getG4cerrReportingLevel
static LogLevel getG4cerrReportingLevel()
Return: Log level
Method to obtain the current logger verbosity level for the cerr stream
function ReceiveG4cout
G4int ReceiveG4cout(
const G4String & msg
) override
Parameters:
- msg Message with standard cout destiny
Return: Zero (success)
Overloaded G4UIsession method which receives the Geant4 cout stream
function ReceiveG4cerr
G4int ReceiveG4cerr(
const G4String & msg
) override
Parameters:
- msg Message with error cerr destiny
Return: Zero (success)
Overloaded G4UIsession method which receives the Geant4 cerr stream
Updated on 2025-02-27 at 14:14:46 +0000