v0.14.0 |
Log manager. More...
Macros | |
#define | MOFEM_LOG_CHANNEL(channel) { MoFEM::LogManager::setLog(channel); } |
Set and reset channel. More... | |
#define | MOFEM_LOG_ATTRIBUTES(channel, bit) { MoFEM::LogManager::addAttributes(channel, bit); } |
Add attributes to channel. More... | |
#define | MOFEM_LOG(channel, severity) BOOST_LOG_SEV(MoFEM::LogManager::getLog(channel), severity) |
Log. More... | |
#define | MOFEM_LOG_FUNCTION() |
Set scope. More... | |
#define | MOFEM_LOG_TAG(channel, tag) MoFEM::LogManager::addTag(channel, tag); |
Tag channel. More... | |
Enumerations | |
enum | MoFEM::LogManager::SeverityLevel { MoFEM::LogManager::noisy, MoFEM::LogManager::verbose, MoFEM::LogManager::inform, MoFEM::LogManager::warning, MoFEM::LogManager::error } |
Severity levels. More... | |
enum | MoFEM::LogManager::LogAttributesBits { MoFEM::LogManager::BitLineID = 1 << 0, MoFEM::LogManager::BitScope = 1 << 1 } |
Tag attributes switches. More... | |
Functions | |
static void | MoFEM::LogManager::addAttributes (LogManager::LoggerType &lg, const int bit=0) |
Add attributes to logger. More... | |
static void | MoFEM::LogManager::addAttributes (const std::string channel, const int bit=0) |
Add attributes to channel. More... | |
static LoggerType & | MoFEM::LogManager::setLog (const std::string channel) |
Set ans resset chanel logger. More... | |
static LoggerType & | MoFEM::LogManager::getLog (const std::string channel) |
Get logger by channel. More... | |
static void | MoFEM::LogManager::addTag (LogManager::LoggerType &lg, const std::string tag) |
Add tag to logger. More... | |
static void | MoFEM::LogManager::addTag (const std::string channel, const std::string tag) |
Add tag to channel. More... | |
Log manager.
Logging manager based on Boost.Log (Boost.Log v2)
#define MOFEM_LOG | ( | channel, | |
severity | |||
) | BOOST_LOG_SEV(MoFEM::LogManager::getLog(channel), severity) |
Log.
Definition at line 308 of file LogManager.hpp.
#define MOFEM_LOG_ATTRIBUTES | ( | channel, | |
bit | |||
) | { MoFEM::LogManager::addAttributes(channel, bit); } |
Add attributes to channel.
Definition at line 296 of file LogManager.hpp.
#define MOFEM_LOG_CHANNEL | ( | channel | ) | { MoFEM::LogManager::setLog(channel); } |
Set and reset channel.
Are three default type of channels, SELF, each processor prints to the standard output, WORLD, only processor one prints, and SYNC all processors prints synchronously.
Definition at line 284 of file LogManager.hpp.
#define MOFEM_LOG_FUNCTION | ( | ) |
Set scope.
Macro for function scope markup. The scope name is constructed with help of compiler and contains the current function signature. The scope name is pushed to the end of the current thread scope list.
Not all compilers have support for this macro. The exact form of the scope name may vary from one compiler to another.
Definition at line 325 of file LogManager.hpp.
#define MOFEM_LOG_TAG | ( | channel, | |
tag | |||
) | MoFEM::LogManager::addTag(channel, tag); |
Tag channel.
Tag channel tag is set until MOFEM_LOG_CHANNEL is called, then new tag can be set.
Definition at line 339 of file LogManager.hpp.
|
static |
|
static |
|
static |
|
static |
|
static |
Get logger by channel.
channel |
Definition at line 395 of file LogManager.cpp.
|
static |
Set ans resset chanel logger.
channel |
Definition at line 389 of file LogManager.cpp.