DART 6.13.2
Loading...
Searching...
No Matches
Logging.hpp File Reference

Go to the source code of this file.

Namespaces

namespace  dart
 
namespace  dart::common
 

Macros

#define DART_LOG_LEVEL_TRACE   0
 
#define DART_LOG_LEVEL_DEBUG   1
 
#define DART_LOG_LEVEL_INFO   2
 
#define DART_LOG_LEVEL_WARN   3
 
#define DART_LOG_LEVEL_ERROR   4
 
#define DART_LOG_LEVEL_FATAL   5
 
#define DART_LOG_LEVEL_OFF   6
 
#define DART_ACTIVE_LOG_LEVEL   DART_LOG_LEVEL_INFO
 
#define DART_TRACE(...)   (void)0
 
#define DART_DEBUG(...)   (void)0
 
#define DART_INFO(...)   ::dart::common::info(__VA_ARGS__)
 
#define DART_WARN(...)   ::dart::common::warn(__VA_ARGS__)
 
#define DART_ERROR(...)   ::dart::common::error(__VA_ARGS__)
 
#define DART_FATAL(...)   ::dart::common::fatal(__VA_ARGS__)
 

Functions

template<typename S , typename... Args>
void dart::common::trace (const S &format_str, Args &&... args)
 Logs for a trace message.
 
template<typename S , typename... Args>
void dart::common::debug (const S &format_str, Args &&... args)
 Logs for a debug message.
 
template<typename S , typename... Args>
void dart::common::info (const S &format_str, Args &&... args)
 Logs for a information message.
 
template<typename S , typename... Args>
void dart::common::warn (const S &format_str, Args &&... args)
 Logs for a warning message.
 
template<typename S , typename... Args>
void dart::common::error (const S &format_str, Args &&... args)
 Logs for a error message.
 
template<typename S , typename... Args>
void dart::common::fatal (const S &format_str, Args &&... args)
 Logs for a fatal error message.
 

Macro Definition Documentation

◆ DART_ACTIVE_LOG_LEVEL

#define DART_ACTIVE_LOG_LEVEL   DART_LOG_LEVEL_INFO

◆ DART_DEBUG

#define DART_DEBUG (   ...)    (void)0

◆ DART_ERROR

#define DART_ERROR (   ...)    ::dart::common::error(__VA_ARGS__)

◆ DART_FATAL

#define DART_FATAL (   ...)    ::dart::common::fatal(__VA_ARGS__)

◆ DART_INFO

#define DART_INFO (   ...)    ::dart::common::info(__VA_ARGS__)

◆ DART_LOG_LEVEL_DEBUG

#define DART_LOG_LEVEL_DEBUG   1

◆ DART_LOG_LEVEL_ERROR

#define DART_LOG_LEVEL_ERROR   4

◆ DART_LOG_LEVEL_FATAL

#define DART_LOG_LEVEL_FATAL   5

◆ DART_LOG_LEVEL_INFO

#define DART_LOG_LEVEL_INFO   2

◆ DART_LOG_LEVEL_OFF

#define DART_LOG_LEVEL_OFF   6

◆ DART_LOG_LEVEL_TRACE

#define DART_LOG_LEVEL_TRACE   0

◆ DART_LOG_LEVEL_WARN

#define DART_LOG_LEVEL_WARN   3

◆ DART_TRACE

#define DART_TRACE (   ...)    (void)0

◆ DART_WARN

#define DART_WARN (   ...)    ::dart::common::warn(__VA_ARGS__)