Go to the documentation of this file.
48 #ifndef LOGGING_MACROS_HPP_
49 #define LOGGING_MACROS_HPP_
56 #define STD_LOGGING_MACROS 0
57 #define ROS_LOGGING_MACROS 1
58 #define NODELET_LOGGING_MACROS 2
59 #define LOGGING_MACROS_TYPE NODELET_LOGGING_MACROS
62 #if LOGGING_MACROS_TYPE == ROS_LOGGING_MACROS
66 #define DEBUG(...) ROS_DEBUG(__VA_ARGS__)
67 #define INFO(...) ROS_INFO(__VA_ARGS__)
68 #define WARN(...) ROS_WARN(__VA_ARGS__)
69 #define ERROR(...) ROS_ERROR(__VA_ARGS__)
70 #define FATAL(...) ROS_FATAL(__VA_ARGS__)
71 #define DEBUG_STREAM(...) ROS_DEBUG_STREAM(__VA_ARGS__)
72 #define INFO_STREAM(...) ROS_INFO_STREAM(__VA_ARGS__)
73 #define WARN_STREAM(...) ROS_WARN_STREAM(__VA_ARGS__)
74 #define ERROR_STREAM(...) ROS_ERROR_STREAM(__VA_ARGS__)
75 #define FATAL_STREAM(...) ROS_FATAL_STREAM(__VA_ARGS__)
77 #elif LOGGING_MACROS_TYPE == NODELET_LOGGING_MACROS
84 #define DEBUG(...) NODELET_DEBUG(__VA_ARGS__)
85 #define INFO(...) NODELET_INFO(__VA_ARGS__)
86 #define WARN(...) NODELET_WARN(__VA_ARGS__)
87 #define ERROR(...) NODELET_ERROR(__VA_ARGS__)
88 #define FATAL(...) NODELET_FATAL(__VA_ARGS__)
89 #define DEBUG_STREAM(...) NODELET_DEBUG_STREAM(__VA_ARGS__)
90 #define INFO_STREAM(...) NODELET_INFO_STREAM(__VA_ARGS__)
91 #define WARN_STREAM(...) NODELET_WARN_STREAM(__VA_ARGS__)
92 #define ERROR_STREAM(...) NODELET_ERROR_STREAM(__VA_ARGS__)
93 #define FATAL_STREAM(...) NODELET_FATAL_STREAM(__VA_ARGS__)
99 #define DEBUG(...) fprintf(stdout, "DEBUG> "); fprintf(stdout, __VA_ARGS__); fprintf(stdout, "\n")
100 #define INFO(...) fprintf(stdout, "INFO > "); fprintf(stdout, __VA_ARGS__); fprintf(stdout, "\n")
101 #define WARN(...) fprintf(stderr, "WARN > "); fprintf(stderr, __VA_ARGS__); fprintf(stderr, "\n")
102 #define ERROR(...) fprintf(stderr, "ERROR> "); fprintf(stderr, __VA_ARGS__); fprintf(stderr, "\n")
103 #define FATAL(...) fprintf(stderr, "FATAL> "); fprintf(stderr, __VA_ARGS__); fprintf(stderr, "\n")
104 #define DEBUG_STREAM(...) std::cout << "DEBUG> " << __VA_ARGS__ << std::endl
105 #define INFO_STREAM(...) std::cout << "INFO > " << __VA_ARGS__ << std::endl
106 #define WARN_STREAM(...) std::cerr << "WARN > " << __VA_ARGS__ << std::endl
107 #define ERROR_STREAM(...) std::cerr << "ERROR> " << __VA_ARGS__ << std::endl
108 #define FATAL_STREAM(...) std::cerr << "FATAL> " << __VA_ARGS__ << std::endl
ueye_cam
Author(s): Anqi Xu
autogenerated on Tue Mar 8 2022 03:50:09