![]() |
Namespace for the logging module. More...
Classes | |
class | FunctionTrace |
RAII object for function tracing.The FunctionTrace class is an auxiliary helper class for the tracing of function calls. It is implemented as a wrapper around the Logger class and is responsible for the atomicity of the logging operations of trace information. More... | |
class | Logger |
Implementation of a logger class.The Logger class represents the core of the logging functionality. It is responsible for commiting logging messages immediately to the according log file(s). The logger works for both serial as well as MPI parallel environments. In case of a non-MPI-parallel simulation the Logger creates the log file 'blaze.log', which contains all logging information from all logging levels. In case of a MPI parallel simulation, each process creates his own individual log file called 'blazeX.log', where 'X' is replaced by the according rank the process has in the MPI_COMM_WORLD communicator. Note that the log file(s) are only created in case any logging information is created. This might for instance result in only a small number of log file(s) in MPI parallel simulations when only some of the processes encounter errors/warnings/etc. Note that the logging functionality may not be used before MPI_Init() has been finished. In consequence, this means that no global data that is initialized before the main() function may contain any use of the logging functionality! More... | |
class | LogSection |
Logging section for (non-)MPI-parallel environments.The LogSection class is an auxiliary helper class for all logging section macros. It is implemented as a wrapper around the Logger class and is responsible for the atomicity of the logging operations and for formatting any message that is written into the log file(s). More... | |
Enumerations | |
enum | LogLevel { inactive = 0, error = 1, warning = 2, info = 3, progress = 4, debug = 5, detail = 6 } |
Logging levels.The LogLevel type enumeration represents the type of the global logging level. It defines all possible levels for the logging functionality. Depending on the setting of the global logging level (see blaze::logLevel), more or less information will be written to the log file(s). The following logging levels are available: More... | |
Functions | |
LogSection operators | |
template<typename Type > | |
LogSection & | operator<< (LogSection &logsection, const Type &message) |
Global output operator for the LogSection class. More... | |
Variables | |
const LogLevel | loglevel = info |
Setting of the logging level.This value specifies the logging level of the Blaze logging functionality. Depending on this setting, more or less informations will be written to the log file(s). The following logging levels can be selected: More... | |
const bool | spacing = false |
Adding an additional spacing line between two log messages.This setting gives the opportunity to add an additional spacing line between two log messages to improve readability of log files. If set to true, each log message will be appended with an additional empty line. If set to false, no line will be appended. | |
Namespace for the logging module.