33#ifndef DART_COMMON_LOGGING_HPP_
34#define DART_COMMON_LOGGING_HPP_
37#define DART_LOG_LEVEL_TRACE 0
38#define DART_LOG_LEVEL_DEBUG 1
39#define DART_LOG_LEVEL_INFO 2
40#define DART_LOG_LEVEL_WARN 3
41#define DART_LOG_LEVEL_ERROR 4
42#define DART_LOG_LEVEL_FATAL 5
43#define DART_LOG_LEVEL_OFF 6
47#if !defined(DART_ACTIVE_LOG_LEVEL)
48 #define DART_ACTIVE_LOG_LEVEL DART_LOG_LEVEL_INFO
51#if DART_ACTIVE_LOG_LEVEL <= DART_LOG_LEVEL_TRACE
52 #define DART_TRACE(...) ::dart::common::trace(__VA_ARGS__)
54 #define DART_TRACE(...) (void)0
57#if DART_ACTIVE_LOG_LEVEL <= DART_LOG_LEVEL_DEBUG
58 #define DART_DEBUG(...) ::dart::common::debug(__VA_ARGS__)
60 #define DART_DEBUG(...) (void)0
63#if DART_ACTIVE_LOG_LEVEL <= DART_LOG_LEVEL_INFO
64 #define DART_INFO(...) ::dart::common::info(__VA_ARGS__)
66 #define DART_INFO(...) (void)0
69#if DART_ACTIVE_LOG_LEVEL <= DART_LOG_LEVEL_WARN
70 #define DART_WARN(...) ::dart::common::warn(__VA_ARGS__)
72 #define DART_WARN(...) (void)0
75#if DART_ACTIVE_LOG_LEVEL <= DART_LOG_LEVEL_ERROR
76 #define DART_ERROR(...) ::dart::common::error(__VA_ARGS__)
78 #define DART_ERROR(...) (void)0
81#if DART_ACTIVE_LOG_LEVEL <= DART_LOG_LEVEL_FATAL
82 #define DART_FATAL(...) ::dart::common::fatal(__VA_ARGS__)
84 #define DART_FATAL(...) (void)0
94template <
typename S,
typename... Args>
95void trace(
const S& format_str, Args&&... args);
102template <
typename S,
typename... Args>
103void debug(
const S& format_str, Args&&... args);
113template <
typename S,
typename... Args>
114void info(
const S& format_str, Args&&... args);
121template <
typename S,
typename... Args>
122void warn(
const S& format_str, Args&&... args);
130template <
typename S,
typename... Args>
131void error(
const S& format_str, Args&&... args);
139template <
typename S,
typename... Args>
140void fatal(
const S& format_str, Args&&... args);
void fatal(const S &format_str, Args &&... args)
Logs for a fatal error message.
Definition Logging-impl.hpp:140
void info(const S &format_str, Args &&... args)
Logs for a information message.
Definition Logging-impl.hpp:104
void warn(const S &format_str, Args &&... args)
Logs for a warning message.
Definition Logging-impl.hpp:116
void trace(const S &format_str, Args &&... args)
Logs for a trace message.
Definition Logging-impl.hpp:80
void error(const S &format_str, Args &&... args)
Logs for a error message.
Definition Logging-impl.hpp:128
const bool debug
Definition urdf_world_parser.cpp:49