Celeritas  0.5.0-56+6b053cd
Functions
accel/Logger.cc File Reference
#include "Logger.hh"
#include <algorithm>
#include <mutex>
#include <string>
#include <G4RunManager.hh>
#include <G4Threading.hh>
#include <G4Version.hh>
#include <G4ios.hh>
#include <celeritas/ext/GeantSetup.hh>
#include "corecel/Assert.hh"
#include "corecel/io/ColorUtils.hh"
#include "corecel/io/Logger.hh"
#include "corecel/io/LoggerTypes.hh"
#include "geocel/GeantUtils.hh"

Functions

Logger celeritas::MakeMTLogger (G4RunManager const &runman)
 Construct a logger that will redirect Celeritas messages through Geant4. More...
 

Function Documentation

◆ MakeMTLogger()

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:

Logger MakeMTLogger(G4RunManager const &runman)
Construct a logger that will redirect Celeritas messages through Geant4.
Definition: accel/Logger.cc:106
Logger & self_logger()
Serial logger: print on every process that calls it.
Definition: corecel/io/Logger.cc:192