preCICE v3.2.0
Loading...
Searching...
No Matches
LogMacros.hpp File Reference
Include dependency graph for LogMacros.hpp:

Go to the source code of this file.

Macros

#define PRECICE_LOG_LOCATION
#define PRECICE_WARN(...)
#define PRECICE_INFO(...)
#define PRECICE_ERROR(...)
#define PRECICE_WARN_IF(condition, ...)
#define PRECICE_INFO_IF(condition, ...)
#define PRECICE_CHECK(check, ...)
#define PRECICE_DEBUG(...)
#define PRECICE_DEBUG_IF(condition, ...)
#define PRECICE_TRACE(...)

Macro Definition Documentation

◆ PRECICE_CHECK

#define PRECICE_CHECK ( check,
... )
Value:
do { \
if (!(check)) { \
PRECICE_ERROR(__VA_ARGS__); \
} \
} while (false)

Definition at line 32 of file LogMacros.hpp.

◆ PRECICE_DEBUG

#define PRECICE_DEBUG ( ...)
Value:
#define PRECICE_LOG_LOCATION
Definition LogMacros.hpp:6
std::string format_or_error(std::string_view str)
Definition fmt.hpp:19
static precice::logging::Logger _log("precicec")

Definition at line 61 of file LogMacros.hpp.

◆ PRECICE_DEBUG_IF

#define PRECICE_DEBUG_IF ( condition,
... )
Value:
do { \
if (condition) { \
PRECICE_DEBUG(__VA_ARGS__); \
} \
} while (false)

Definition at line 63 of file LogMacros.hpp.

◆ PRECICE_ERROR

#define PRECICE_ERROR ( ...)
Value:
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.
Definition Logger.hpp:50

Definition at line 16 of file LogMacros.hpp.

◆ PRECICE_INFO

#define PRECICE_INFO ( ...)
Value:

Definition at line 14 of file LogMacros.hpp.

◆ PRECICE_INFO_IF

#define PRECICE_INFO_IF ( condition,
... )
Value:
do { \
if (condition) { \
PRECICE_INFO(__VA_ARGS__); \
} \
} while (false)

Definition at line 25 of file LogMacros.hpp.

◆ PRECICE_LOG_LOCATION

#define PRECICE_LOG_LOCATION
Value:
{ \
__FILE__, __LINE__, __func__ \
}
Struct used to capture the original location of a log request.
Definition Logger.hpp:10

Definition at line 6 of file LogMacros.hpp.

◆ PRECICE_TRACE

#define PRECICE_TRACE ( ...)
Value:

Definition at line 92 of file LogMacros.hpp.

◆ PRECICE_WARN

#define PRECICE_WARN ( ...)
Value:

Definition at line 12 of file LogMacros.hpp.

◆ PRECICE_WARN_IF

#define PRECICE_WARN_IF ( condition,
... )
Value:
do { \
if (condition) { \
PRECICE_WARN(__VA_ARGS__); \
} \
} while (false)

Definition at line 18 of file LogMacros.hpp.