iceoryx2
C++ Language Bindings
Loading...
Searching...
No Matches
error_logging.hpp File Reference

Go to the source code of this file.

Macros

#define IOX2_ERROR_INTERNAL_LOG(location, msg_stream)
 Log the location of an error.
 
#define IOX2_ERROR_INTERNAL_LOG_FATAL(location, msg_stream)
 Log the location of a fatal error.
 
#define IOX2_ERROR_INTERNAL_LOG_PANIC(location, msg_stream)   IOX2_ERROR_INTERNAL_LOG_FATAL(location, msg_stream)
 Log a panic invocation.
 

Macro Definition Documentation

◆ IOX2_ERROR_INTERNAL_LOG

#define IOX2_ERROR_INTERNAL_LOG (   location,
  msg_stream 
)
Value:
IOX2_LOG_INTERNAL(location, \
location.file_name() << ":" << location.line() << " " << msg_stream)
#define IOX2_LOG_INTERNAL(location, level, msg_stream)
Only for internal usage.
Definition logging.hpp:44

Log the location of an error.

Parameters
locationthe location of the error
msg_streamis the log message stream; multiple items can be logged by using the '<<' operator

Definition at line 25 of file error_logging.hpp.

◆ IOX2_ERROR_INTERNAL_LOG_FATAL

#define IOX2_ERROR_INTERNAL_LOG_FATAL (   location,
  msg_stream 
)
Value:
IOX2_LOG_INTERNAL(location, \
location.file_name() << ":" << location.line() << " " << msg_stream)

Log the location of a fatal error.

Parameters
locationthe location of the error
msg_streamis the log message stream; multiple items can be logged by using the '<<' operator

Definition at line 33 of file error_logging.hpp.

◆ IOX2_ERROR_INTERNAL_LOG_PANIC

#define IOX2_ERROR_INTERNAL_LOG_PANIC (   location,
  msg_stream 
)    IOX2_ERROR_INTERNAL_LOG_FATAL(location, msg_stream)

Log a panic invocation.

Parameters
locationthe location of the panic invocation.
msg_streamis the log message stream; multiple items can be logged by using the '<<' operator

Definition at line 41 of file error_logging.hpp.