![]() |
v0.15.0 |
Log manager. More...
Classes | |
struct | MoFEM::LogManager |
Log manager is used to build and partition problems. More... | |
Macros | |
#define | MOFEM_LOG_CHANNEL(channel) |
Set and reset channel. | |
#define | MOFEM_LOG_ATTRIBUTES(channel, bit) |
Add attributes to channel. | |
#define | MOFEM_LOG(channel, severity) |
Log. | |
#define | MOFEM_LOG_FUNCTION() |
Set scope. | |
#define | MOFEM_LOG_TAG(channel, tag) |
Tag channel. | |
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. | |
static void | MoFEM::LogManager::addAttributes (const std::string channel, const int bit=0) |
Add attributes to channel. | |
static LoggerType & | MoFEM::LogManager::setLog (const std::string channel) |
Set ans resset chanel logger. | |
static LoggerType & | MoFEM::LogManager::getLog (const std::string channel) |
Get logger by channel. | |
static void | MoFEM::LogManager::addTag (LogManager::LoggerType &lg, const std::string tag) |
Add tag to logger. | |
static void | MoFEM::LogManager::addTag (const std::string channel, const std::string tag) |
Add tag to channel. | |
Log manager.
Logging manager based on Boost.Log (Boost.Log v2)
#define MOFEM_LOG | ( | channel, | |
severity ) |
#include <src/interfaces/LogManager.hpp>
Log.
Definition at line 316 of file LogManager.hpp.
#define MOFEM_LOG_ATTRIBUTES | ( | channel, | |
bit ) |
#include <src/interfaces/LogManager.hpp>
Add attributes to channel.
Definition at line 304 of file LogManager.hpp.
#define MOFEM_LOG_CHANNEL | ( | channel | ) |
#include <src/interfaces/LogManager.hpp>
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 292 of file LogManager.hpp.
#define MOFEM_LOG_FUNCTION | ( | ) |
#include <src/interfaces/LogManager.hpp>
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 333 of file LogManager.hpp.
#define MOFEM_LOG_TAG | ( | channel, | |
tag ) |
#include <src/interfaces/LogManager.hpp>
Tag channel.
Tag channel tag is set until MOFEM_LOG_CHANNEL is called, then new tag can be set.
Definition at line 347 of file LogManager.hpp.
Tag attributes switches.
Enumerator | |
---|---|
BitLineID | |
BitScope |
Definition at line 47 of file LogManager.hpp.
Severity levels.
Enumerator | |
---|---|
noisy | |
verbose | |
inform | |
warning | |
error |
Definition at line 33 of file LogManager.hpp.
|
static |
#include <src/interfaces/LogManager.hpp>
Add attributes to channel.
channel | |
bit |
Definition at line 380 of file LogManager.cpp.
|
static |
#include <src/interfaces/LogManager.hpp>
Add attributes to logger.
lg | |
bit |
Definition at line 362 of file LogManager.cpp.
|
static |
#include <src/interfaces/LogManager.hpp>
Add tag to channel.
channel | |
tag |
Definition at line 388 of file LogManager.cpp.
|
static |
#include <src/interfaces/LogManager.hpp>
Add tag to logger.
lg | |
tag |
Definition at line 384 of file LogManager.cpp.
|
static |
#include <src/interfaces/LogManager.hpp>
Get logger by channel.
channel |
Definition at line 398 of file LogManager.cpp.
|
static |
#include <src/interfaces/LogManager.hpp>
Set ans resset chanel logger.
channel |
Definition at line 392 of file LogManager.cpp.