v0.14.0
Loading...
Searching...
No Matches
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

namespace  MoFEM
 implementation of Data Operators for Forces and Sources
 
namespace  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 scope. More...
 
#define MOFEM_LOG_TAG(channel, tag)   MoFEM::LogManager::addTag(channel, tag);
 Tag channel. More...
 
#define MOFEM_LOG_SYNCHRONISE(comm)    PetscSynchronizedFlush(comm, MoFEM::LogManager::dummy_mofem_fd);
 Synchronise "SYNC" channel. More...
 
#define MOFEM_LOG_SEVERITY_SYNC(comm, severity)
 Synchronise "SYNC" on curtain severity level. More...
 
#define MOFEM_TAG_AND_LOG(channel, severity, tag)
 Tag and log in channel. More...
 
#define MOFEM_TAG_AND_LOG_C(channel, severity, tag, format, ...)
 Tag and log in 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

 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,
  ... 
)

◆ MOFEM_LOG_SEVERITY_SYNC

#define MOFEM_LOG_SEVERITY_SYNC (   comm,
  severity 
)
Value:
MOFEM_LOG("NULL", severity) << ([&] { \
MOFEM_LOG_SYNCHRONISE(comm); \
return 0; \
})()

Synchronise "SYNC" on curtain severity level.

Examples
dynamic_first_order_con_law.cpp, free_surface.cpp, seepage.cpp, and thermo_elastic.cpp.

Definition at line 352 of file LogManager.hpp.

◆ MOFEM_LOG_SYNCHRONISE

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

Synchronise "SYNC" channel.

Examples
elasticity.cpp, hello_world.cpp, log.cpp, plastic.cpp, test_cache_on_entities.cpp, and thermo_elastic.cpp.

Definition at line 345 of file LogManager.hpp.

◆ MOFEM_TAG_AND_LOG

#define MOFEM_TAG_AND_LOG (   channel,
  severity,
  tag 
)
Value:
MOFEM_LOG_TAG(channel, tag) \
MOFEM_LOG(channel, severity)
#define MOFEM_LOG_TAG(channel, tag)
Tag channel.
Definition: LogManager.hpp:339

Tag and log in channel.

Examples
ADOLCPlasticityMaterialModels.hpp, PlasticOps.hpp, ThermoElasticOps.hpp, adolc_plasticity.cpp, free_surface.cpp, nonlinear_elastic.cpp, partition_mesh.cpp, seepage.cpp, and thermo_elastic.cpp.

Definition at line 362 of file LogManager.hpp.

◆ MOFEM_TAG_AND_LOG_C

#define MOFEM_TAG_AND_LOG_C (   channel,
  severity,
  tag,
  format,
  ... 
)
Value:
MOFEM_LOG_TAG(channel, tag) \
MOFEM_LOG_C(channel, severity, format, __VA_ARGS__)

Tag and log in channel.

Definition at line 370 of file LogManager.hpp.

Function Documentation

◆ PetscVFPrintfDefault()

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