v0.10.0
Classes | Namespaces | Macros | Functions | Variables
LogManager.hpp File Reference

Log and register warnings. More...

Go to the source code of this file.

Classes

struct  MoFEM::LogManager
 Log manager is used to build and partition problems. More...
 

Namespaces

 MoFEM
 implementation of Data Operators for Forces and Sources
 
 MoFEM::LogKeywords
 

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_C(channel, severity, format, ...)
 
#define MOFEM_LOG_FUNCTION()
 Set scopeMacro 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. More...
 
#define MOFEM_LOG_TAG(channel, tag)   MoFEM::LogManager::addTag(channel, tag);
 Tag channelTag channel tag is set until MOFEM_LOG_CHANNEL is called, then new tag can be set. More...
 
#define MOFEM_LOG_SYNCHRONISE(comm)   PetscSynchronizedFlush(comm, MoFEM::LogManager::dummy_mofem_fd);
 Synchronise "SYNC" channel. More...
 

Functions

std::ostream & MoFEM::operator<< (std::ostream &strm, const LogManager::SeverityLevel &level)
 
 MoFEM::LogKeywords::BOOST_LOG_ATTRIBUTE_KEYWORD (scope, "Scope", boost::log::attributes::named_scope::value_type) BOOST_LOG_ATTRIBUTE_KEYWORD(timeline
 
PetscErrorCode PetscVFPrintfDefault (FILE *fd, const char *format, va_list Argp)
 

Variables

static const MOFEMuuid MoFEM::IDD_MOFEMLogManager
 
 MoFEM::LogKeywords::Timeline
 

Detailed Description

Log and register warnings.

Definition in file LogManager.hpp.

Macro Definition Documentation

◆ MOFEM_LOG_C

#define MOFEM_LOG_C (   channel,
  severity,
  format,
  ... 
)
Value:
MOFEM_LOG(channel, severity) \
#define MOFEM_LOG(channel, severity)
Log.
Definition: LogManager.hpp:303
static std::string getCLikeFormatedString(const char *fmt,...)
Converts formatted output to string.
Definition: LogManager.cpp:435
Examples
dynamic_elastic.cpp, eigen_elastic.cpp, elasticity.cpp, and log.cpp.

Definition at line 306 of file LogManager.hpp.

◆ MOFEM_LOG_SYNCHRONISE

#define MOFEM_LOG_SYNCHRONISE (   comm)    PetscSynchronizedFlush(comm, MoFEM::LogManager::dummy_mofem_fd);

Synchronise "SYNC" channel.

Examples
hello_world.cpp, log.cpp, and test_cache_on_entities.cpp.

Definition at line 340 of file LogManager.hpp.

Function Documentation

◆ PetscVFPrintfDefault()

PetscErrorCode PetscVFPrintfDefault ( FILE *  fd,
const char *  format,
va_list  Argp 
)