Celeritas 0.6.0-dev.116+3fbab5e0
|
Geant4-friendly logging utilities. More...
#include "corecel/io/Logger.hh"
Functions | |
Logger | celeritas::MakeMTLogger (G4RunManager const &runman) |
Construct a logger that will redirect Celeritas messages through Geant4. | |
Logger | celeritas::make_mt_logger (G4RunManager const &rm) |
Manually create a multithread-friendly logger (remove in v0.6) | |
std::string | celeritas::get_thread_label () |
Geant4-friendly logging utilities.
Logger celeritas::MakeMTLogger | ( | G4RunManager const & | runman | ) |
Construct a logger that will redirect Celeritas messages through Geant4.
This logger writes the current thread (and maximum number of threads) in each output message, and sends each message through the thread-local G4cerr
.
In the main
of your application's exectuable, set the "process-local" (MPI-aware) logger: