Logging Macros

group LoggingMacros

This group consists of all the macros used for logging.

Debug Logging Macros

group DebugLoggingMacros

This group consists of all the macros used for logging only in debug mode.

Defines

SHRN_INFO(section, ...)

Calls Shroon::Logger::LogInfo() when macro NDEBUG is not defined i.e. in debug mode and when SHRN_LOG_LEVEL >= SHRN_LOG_LEVEL_INFO.

SHRN_WARNING(section, ...)

Calls Shroon::Logger::LogWarning() when macro NDEBUG is not defined i.e. in debug mode and when SHRN_LOG_LEVEL >= SHRN_LOG_LEVEL_WARNING.

SHRN_ERROR(section, ...)

Calls Shroon::Logger::LogError() when macro NDEBUG is not defined i.e. in debug mode and when SHRN_LOG_LEVEL >= SHRN_LOG_LEVEL_ERROR.

SHRN_ASSERT(cond, section, ...)

Calls Shroon::Logger::LogFatalError() when macro NDEBUG is not defined i.e. in debug mode and when SHRN_LOG_LEVEL >= SHRN_LOG_LEVEL_ERROR otherwise calls SHRN_DEBUG_BREAK().

Release Logging Macros

group ReleaseLoggingMacros

This group consists of all the macros used for logging in both debug and release mode.

Defines

SHRN_REL_INFO(section, ...)

Calls Shroon::Logger::LogInfo() when SHRN_LOG_LEVEL >= SHRN_LOG_LEVEL_INFO.

SHRN_REL_WARNING(section, ...)

Calls Shroon::Logger::LogWarning() when SHRN_LOG_LEVEL >= SHRN_LOG_LEVEL_WARNING.

SHRN_REL_ERROR(section, ...)

Calls Shroon::Logger::LogError() when SHRN_LOG_LEVEL >= SHRN_LOG_LEVEL_ERROR.

SHRN_REL_ASSERT(cond, section, ...)

Calls Shroon::Logger::LogFatalError() when SHRN_LOG_LEVEL >= SHRN_LOG_LEVEL_ERROR otherwise calls SHRN_DEBUG_BREAK().