Macros | Functions
logging.h File Reference
#include <console_bridge/console.h>
#include <sstream>
Include dependency graph for logging.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define LOG(args)   { std::stringstream sstr; sstr << "LOG: " << args; roscanopen_log_deprecated(sstr.str(), __FILE__, __LINE__); }
 
#define ROSCANOPEN_DEBUG(name, args)   ROSCANOPEN_LOG(name, __FILE__, __LINE__,console_bridge::CONSOLE_BRIDGE_LOG_DEBUG, args)
 
#define ROSCANOPEN_ERROR(name, args)   ROSCANOPEN_LOG(name, __FILE__, __LINE__, console_bridge::CONSOLE_BRIDGE_LOG_ERROR, args)
 
#define ROSCANOPEN_INFO(name, args)   ROSCANOPEN_LOG(name, __FILE__, __LINE__, console_bridge::CONSOLE_BRIDGE_LOG_INFO, args)
 
#define ROSCANOPEN_LOG(name, file, line, level, args)   { std::stringstream sstr; sstr << name << ": " << args; console_bridge::getOutputHandler()->log(sstr.str(), level, file, line); }
 
#define ROSCANOPEN_WARN(name, args)   ROSCANOPEN_LOG(name, __FILE__, __LINE__, console_bridge::CONSOLE_BRIDGE_LOG_WARN, args)
 

Functions

 __attribute__ ((deprecated("please use ROSCANOPEN_* macros"))) void roscanopen_log_deprecated(const std
 

Macro Definition Documentation

◆ LOG

#define LOG (   args)    { std::stringstream sstr; sstr << "LOG: " << args; roscanopen_log_deprecated(sstr.str(), __FILE__, __LINE__); }

Definition at line 16 of file logging.h.

◆ ROSCANOPEN_DEBUG

#define ROSCANOPEN_DEBUG (   name,
  args 
)    ROSCANOPEN_LOG(name, __FILE__, __LINE__,console_bridge::CONSOLE_BRIDGE_LOG_DEBUG, args)

Definition at line 12 of file logging.h.

◆ ROSCANOPEN_ERROR

#define ROSCANOPEN_ERROR (   name,
  args 
)    ROSCANOPEN_LOG(name, __FILE__, __LINE__, console_bridge::CONSOLE_BRIDGE_LOG_ERROR, args)

Definition at line 9 of file logging.h.

◆ ROSCANOPEN_INFO

#define ROSCANOPEN_INFO (   name,
  args 
)    ROSCANOPEN_LOG(name, __FILE__, __LINE__, console_bridge::CONSOLE_BRIDGE_LOG_INFO, args)

Definition at line 10 of file logging.h.

◆ ROSCANOPEN_LOG

#define ROSCANOPEN_LOG (   name,
  file,
  line,
  level,
  args 
)    { std::stringstream sstr; sstr << name << ": " << args; console_bridge::getOutputHandler()->log(sstr.str(), level, file, line); }

Definition at line 7 of file logging.h.

◆ ROSCANOPEN_WARN

#define ROSCANOPEN_WARN (   name,
  args 
)    ROSCANOPEN_LOG(name, __FILE__, __LINE__, console_bridge::CONSOLE_BRIDGE_LOG_WARN, args)

Definition at line 11 of file logging.h.

Function Documentation

◆ __attribute__()

__attribute__ ( (deprecated("please use ROSCANOPEN_* macros"))  ) const
inline

Definition at line 15 of file logging.h.



socketcan_interface
Author(s): Mathias Lüdtke
autogenerated on Wed Mar 2 2022 00:52:25