LogMacros.h File Reference
Logging API » Internal logging helpers

Macros used for logging. More...

`#include "SurgSim/Framework/Logger.h"`
`#include "SurgSim/Framework/LogMessage.h"`

Go to the source code of this file.

## Namespaces

| SurgSim
| SurgSim::Framework

## Macros

#define | SURGSIM_LOG_LEVEL(level) ::SurgSim::Framework::LOG_LEVEL_ ## level
| Converts a short level name to the log level enum value. More...
#define | SURGSIM_LOG(logger, level)
| Logs a message to the specified `logger` with the short `level` name. More...
#define | SURGSIM_LOG_DEBUG(logger) SURGSIM_LOG(logger, DEBUG)
| Logs a message to the specified `logger` at the DEBUG level. More...
#define | SURGSIM_LOG_INFO(logger) SURGSIM_LOG(logger, INFO)
| Logs a message to the specified `logger` at the INFO level. More...
#define | SURGSIM_LOG_WARNING(logger) SURGSIM_LOG(logger, WARNING)
| Logs a message to the specified `logger` at the WARNING level. More...
#define | SURGSIM_LOG_SEVERE(logger) SURGSIM_LOG(logger, SEVERE)
| Logs a message to the specified `logger` at the SEVERE level. More...
#define | SURGSIM_LOG_CRITICAL(logger) SURGSIM_LOG(logger, CRITICAL)
| Logs a message to the specified `logger` at the CRITICAL level. More...
#define | SURGSIM_LOG_IF(condition, logger, level)
| Logs a message to the specified `logger` with the short `level` name if `condition` is true. More...
#define | SURGSIM_FLAG_VARIABLE_NAME_HELPER(base, line) base ## line
| Generate a variable name that should be unique within a file. More...
#define | SURGSIM_FLAG_VARIABLE_NAME(base, line) SURGSIM_FLAG_VARIABLE_NAME_HELPER(base, line)
| Generate a variable name that should be unique within a file. More...
#define | SURGSIM_LOG_ONCE_VARIABLE SURGSIM_FLAG_VARIABLE_NAME(surgsimLogOnceFlag, __LINE__)
| Define a variable name that depends on the line number in the source file where the macro is called from. More...
#define | SURGSIM_LOG_ONCE(logger, level)
| Logs a message to the specified `logger` with the short `level` name, but only the first time this statement is reached. More...
#define | SURGSIM_LOG_ONCE_IF(condition, logger, level)
| Logs a message to the specified `logger` with the short `level` name if `condition` is true, but only the first time this particular condition is true. More...

## Detailed Description

Macros used for logging.

See also
  Logging API