Macros
logging_macros.hpp File Reference
#include <cstdio>
#include <iostream>
Include dependency graph for logging_macros.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define DEBUG(...)   fprintf(stdout, "DEBUG> "); fprintf(stdout, __VA_ARGS__); fprintf(stdout, "\n")
 
#define DEBUG_STREAM(...)   std::cout << "DEBUG> " << __VA_ARGS__ << std::endl
 
#define ERROR(...)   fprintf(stderr, "ERROR> "); fprintf(stderr, __VA_ARGS__); fprintf(stderr, "\n")
 
#define ERROR_STREAM(...)   std::cerr << "ERROR> " << __VA_ARGS__ << std::endl
 
#define FATAL(...)   fprintf(stderr, "FATAL> "); fprintf(stderr, __VA_ARGS__); fprintf(stderr, "\n")
 
#define FATAL_STREAM(...)   std::cerr << "FATAL> " << __VA_ARGS__ << std::endl
 
#define INFO(...)   fprintf(stdout, "INFO > "); fprintf(stdout, __VA_ARGS__); fprintf(stdout, "\n")
 
#define INFO_STREAM(...)   std::cout << "INFO > " << __VA_ARGS__ << std::endl
 
#define LOGGING_MACROS_TYPE   NODELET_LOGGING_MACROS
 
#define NODELET_LOGGING_MACROS   2
 
#define ROS_LOGGING_MACROS   1
 
#define STD_LOGGING_MACROS   0
 
#define WARN(...)   fprintf(stderr, "WARN > "); fprintf(stderr, __VA_ARGS__); fprintf(stderr, "\n")
 
#define WARN_STREAM(...)   std::cerr << "WARN > " << __VA_ARGS__ << std::endl
 

Macro Definition Documentation

◆ DEBUG

#define DEBUG (   ...)    fprintf(stdout, "DEBUG> "); fprintf(stdout, __VA_ARGS__); fprintf(stdout, "\n")

Definition at line 99 of file logging_macros.hpp.

◆ DEBUG_STREAM

#define DEBUG_STREAM (   ...)    std::cout << "DEBUG> " << __VA_ARGS__ << std::endl

Definition at line 104 of file logging_macros.hpp.

◆ ERROR

#define ERROR (   ...)    fprintf(stderr, "ERROR> "); fprintf(stderr, __VA_ARGS__); fprintf(stderr, "\n")

Definition at line 102 of file logging_macros.hpp.

◆ ERROR_STREAM

#define ERROR_STREAM (   ...)    std::cerr << "ERROR> " << __VA_ARGS__ << std::endl

Definition at line 107 of file logging_macros.hpp.

◆ FATAL

#define FATAL (   ...)    fprintf(stderr, "FATAL> "); fprintf(stderr, __VA_ARGS__); fprintf(stderr, "\n")

Definition at line 103 of file logging_macros.hpp.

◆ FATAL_STREAM

#define FATAL_STREAM (   ...)    std::cerr << "FATAL> " << __VA_ARGS__ << std::endl

Definition at line 108 of file logging_macros.hpp.

◆ INFO

#define INFO (   ...)    fprintf(stdout, "INFO > "); fprintf(stdout, __VA_ARGS__); fprintf(stdout, "\n")

Definition at line 100 of file logging_macros.hpp.

◆ INFO_STREAM

#define INFO_STREAM (   ...)    std::cout << "INFO > " << __VA_ARGS__ << std::endl

Definition at line 105 of file logging_macros.hpp.

◆ LOGGING_MACROS_TYPE

#define LOGGING_MACROS_TYPE   NODELET_LOGGING_MACROS

Definition at line 59 of file logging_macros.hpp.

◆ NODELET_LOGGING_MACROS

#define NODELET_LOGGING_MACROS   2

Definition at line 58 of file logging_macros.hpp.

◆ ROS_LOGGING_MACROS

#define ROS_LOGGING_MACROS   1

Definition at line 57 of file logging_macros.hpp.

◆ STD_LOGGING_MACROS

#define STD_LOGGING_MACROS   0

This header allows potentially ROS-agnostic code to either use ROS logging mechanisms, ROS nodelet logging mechanisms, or standard output mechanisms.

Definition at line 56 of file logging_macros.hpp.

◆ WARN

#define WARN (   ...)    fprintf(stderr, "WARN > "); fprintf(stderr, __VA_ARGS__); fprintf(stderr, "\n")

Definition at line 101 of file logging_macros.hpp.

◆ WARN_STREAM

#define WARN_STREAM (   ...)    std::cerr << "WARN > " << __VA_ARGS__ << std::endl

Definition at line 106 of file logging_macros.hpp.



ueye_cam
Author(s): Anqi Xu
autogenerated on Tue Mar 8 2022 03:50:09