35#define ATTR_FORMAT(archetype, string_index, first) __attribute__((format(archetype, string_index, first)))
37#define ATTR_FORMAT(archetype, string_index, first)
40#define LOGGER_FUNC_FORMAT_ENUM ATTR_FORMAT(printf, 2, 3)
41#define LOGGER_FUNC_FORMAT ATTR_FORMAT(printf, 1, 2)
Provide circular logging.
struct SOPC_Log_Instance SOPC_Log_Instance
Definition sopc_log_manager.h:35
SOPC_Log_Level
Definition sopc_log_manager.h:38
void SOPC_Logger_TraceSecurityAudit(const char *format,...) LOGGER_FUNC_FORMAT
Log a trace for the security audit log.
void SOPC_Logger_TraceWarning(SOPC_Log_Module logModule, const char *format,...) LOGGER_FUNC_FORMAT_ENUM
Log a trace with the warning level.
void SOPC_Logger_TraceSecurityAuditWarning(const char *format,...) LOGGER_FUNC_FORMAT
Log a warning trace for the security audit log.
SOPC_Log_Level SOPC_Logger_GetTraceLogLevel(void)
getter for the log level
SOPC_Log_Module
enumerate to define log modules
Definition sopc_logger.h:47
@ SOPC_LOG_MODULE_PUBSUB
Definition sopc_logger.h:50
@ SOPC_LOG_MODULE_COMMON
Definition sopc_logger.h:48
@ SOPC_LOG_MODULE_CLIENTSERVER
Definition sopc_logger.h:49
SOPC_Log_Instance * SOPC_Logger_AddUserInstance(const char *category)
Add a user instance in the existing Toolkit log. The new created instance is managed by SOPC_Logger a...
void SOPC_Logger_TraceInfo(SOPC_Log_Module logModule, const char *format,...) LOGGER_FUNC_FORMAT_ENUM
Log a trace with the info level.
void SOPC_Logger_TraceDebug(SOPC_Log_Module logModule, const char *format,...) LOGGER_FUNC_FORMAT_ENUM
void SOPC_Logger_TraceOpcUaAuditWarning(const char *format,...) LOGGER_FUNC_FORMAT
Log a warning trace for the OPC UA audit log.
#define LOGGER_FUNC_FORMAT
Definition sopc_logger.h:41
void SOPC_Logger_SetConsoleOutput(bool activate)
Activates the console output for logged traces (same active level as log file)
bool SOPC_Logger_Initialize(const SOPC_Log_Configuration *const logConfiguration)
Initializes the logger system.
void SOPC_Logger_TraceError(SOPC_Log_Module logModule, const char *format,...) LOGGER_FUNC_FORMAT_ENUM
Log a trace with the error level.
void SOPC_Logger_TraceOpcUaAudit(const char *format,...) LOGGER_FUNC_FORMAT
Log a trace for the OPC UA audit log.
void SOPC_Logger_SetTraceLogLevel(SOPC_Log_Level level)
Defines the active log level for the given log instance (default: ERROR):
#define LOGGER_FUNC_FORMAT_ENUM
Definition sopc_logger.h:40
void SOPC_Logger_Clear(void)
Clears the logger and close the current log files.
Defines logging configuration.
Definition sopc_log_manager.h:103