|
Celeritas 0.7.0-dev.275+develop.cfe230fd
|
#include <utility>#include "corecel/Macros.hh"#include "LoggerTypes.hh"#include "detail/LoggerMessage.hh"Classes | |
| class | celeritas::Logger |
| Create a log message to be printed based on output/verbosity settings. More... | |
Macros | |
| #define | CELER_CODE_PROVENANCE |
| Inject the source code provenance (current file and line) | |
| #define | CELER_LOG(LEVEL) |
| Return a LogMessage object for streaming into at the given level. | |
| #define | CELER_LOG_LOCAL(LEVEL) |
Like CELER_LOG but for code paths that may only happen on a single process or thread. | |
Functions | |
| Logger & | celeritas::world_logger () |
| App-level logger: print only on "main" process. | |
| Logger & | celeritas::self_logger () |
| Serial logger: print on every process that calls it. | |
| #define CELER_CODE_PROVENANCE |
Inject the source code provenance (current file and line)
| #define CELER_LOG | ( | LEVEL | ) |
Return a LogMessage object for streaming into at the given level.
The regular CELER_LOG call is for code paths that happen uniformly in parallel, approximately the same message from every thread and task.
The logger will only format and print messages. It is not responsible for cleaning up the state or exiting an app.
| #define CELER_LOG_LOCAL | ( | LEVEL | ) |
Like CELER_LOG but for code paths that may only happen on a single process or thread.
Use sparingly because this can be very verbose. This should be used for error messages from an event or track at runtime.
| Logger & celeritas::self_logger | ( | ) |
Serial logger: print on every process that calls it.
Setting the "CELER_LOG_LOCAL" environment variable to "debug", "info", "error", etc. will change the default log level.
| Logger & celeritas::world_logger | ( | ) |
App-level logger: print only on "main" process.
Setting the "CELER_LOG" environment variable to "debug", "info", "error", etc. will change the default log level.