|
preCICE v3.3.0
|
contains the logging framework. More...
Namespaces | |
| namespace | keywords |
Classes | |
| struct | BackendConfiguration |
| Holds the configuration for one logging backend (sink) and takes care of default values. More... | |
| class | colorized_severity_formatter_factory |
| A custom formatter that handles the colorized Severity formatting. More... | |
| struct | GlobalLoggingConfig |
| Holds global logging data in a central place. More... | |
| class | LogConfiguration |
| Configures the log config file to use. More... | |
| class | Logger |
| This class provides a lightweight logger. More... | |
| struct | LogLocation |
| Struct used to capture the original location of a log request. More... | |
| class | NullSink |
| A custom sink that does nothing. It is used to disable the default sink of boost.Log. More... | |
| class | precice_feature |
| A feature that adds LogLocation info to log attributes. More... | |
| struct | precice_log |
| Required by BoostLogger to use precice_feature. More... | |
| class | severity_formatter_factory |
| A custom formatter that handles non-colorized Severity formatting. More... | |
| class | StreamBackend |
| A simple backends that outputs the message to a stream. More... | |
| class | timestamp_formatter_factory |
| A custom formatter that handles the TimeStamp format string. More... | |
| class | Tracer |
Typedefs | |
| using | LoggingConfiguration = std::vector<BackendConfiguration> |
| Holds the configuration of the logging system. | |
| template<class BaseLogger> | |
| using | BoostLogger |
| The boost logger that combines required features. | |
Functions | |
| LoggingConfiguration | readLogConfFile (std::string const &filename) |
| Reads a log file, returns a logging configuration. | |
| void | setupLogging (LoggingConfiguration configs, bool enabled=true) |
| Configures the logging from a LoggingConfiguration. | |
| void | setupLogging (std::string const &logConfigFile="log.conf") |
| Configures the logging from a log file. | |
| void | setMPIRank (int const rank) |
| void | setParticipant (std::string const &participant) |
| GlobalLoggingConfig & | getGlobalLoggingConfig () |
| Returns the global logging configuration. | |
| void | lockConf () |
| template<class Error> | |
| void | logErrorAndThrow (precice::logging::Logger &log, precice::logging::LogLocation location, const std::string &message) |
| Utility function to log an error and throw an exception of given type. | |
contains the logging framework.
| using precice::logging::BoostLogger |
The boost logger that combines required features.
Definition at line 89 of file Logger.cpp.
Holds the configuration of the logging system.
Definition at line 32 of file LogConfiguration.hpp.
| GlobalLoggingConfig & precice::logging::getGlobalLoggingConfig | ( | ) |
Returns the global logging configuration.
Definition at line 295 of file LogConfiguration.cpp.
| void precice::logging::lockConf | ( | ) |
Locks the configuration, ignoring any future calls to setupLogging()
Definition at line 301 of file LogConfiguration.cpp.
|
inline |
Utility function to log an error and throw an exception of given type.
Definition at line 50 of file Logger.hpp.
| LoggingConfiguration precice::logging::readLogConfFile | ( | std::string const & | filename | ) |
Reads a log file, returns a logging configuration.
Reads a log configuration file, returns vector of BackEndConfiguration.
Definition at line 126 of file LogConfiguration.cpp.
| void precice::logging::setMPIRank | ( | int const | rank | ) |
Sets the current MPI rank as a logging attribute
Definition at line 285 of file LogConfiguration.cpp.
| void precice::logging::setParticipant | ( | std::string const & | name | ) |
Sets the name of the current participant as a logging attribute
Definition at line 290 of file LogConfiguration.cpp.
| void precice::logging::setupLogging | ( | LoggingConfiguration | configs, |
| bool | enabled ) |
Configures the logging from a LoggingConfiguration.
Definition at line 195 of file LogConfiguration.cpp.
| void precice::logging::setupLogging | ( | std::string const & | logConfigFile | ) |
Configures the logging from a log file.
Definition at line 280 of file LogConfiguration.cpp.