Go to the documentation of this file.
26 #ifndef SOPC_LOGGER_H_
27 #define SOPC_LOGGER_H_
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)
#define LOGGER_FUNC_FORMAT_ENUM
Definition: sopc_logger.h:40
void SOPC_Logger_SetConsoleOutput(bool activate)
Activates the console output for logged traces (same active level as log file)
@ SOPC_LOG_MODULE_COMMON
Definition: sopc_logger.h:48
void SOPC_Logger_TraceDebug(SOPC_Log_Module logModule, const char *format,...) LOGGER_FUNC_FORMAT_ENUM
void SOPC_Logger_TraceError(SOPC_Log_Module logModule, const char *format,...) LOGGER_FUNC_FORMAT_ENUM
Log a trace with the error level.
Defines logging configuration.
Definition: sopc_log_manager.h:103
void SOPC_Logger_SetTraceLogLevel(SOPC_Log_Level level)
Defines the active log level for the given log instance (default: ERROR):
SOPC_Log_Level
Definition: libs2opc_client.h:79
struct SOPC_Log_Instance SOPC_Log_Instance
Definition: sopc_log_manager.h:35
Provide circular logging.
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_Clear(void)
Clears the logger and close the current log files.
void SOPC_Logger_TraceOpcUaAudit(const char *format,...) LOGGER_FUNC_FORMAT
Log a trace for the OPC UA audit log.
#define LOGGER_FUNC_FORMAT
Definition: sopc_logger.h:41
void SOPC_Logger_TraceSecurityAudit(const char *format,...) LOGGER_FUNC_FORMAT
Log a trace for the security audit log.
void SOPC_Logger_TraceOpcUaAuditWarning(const char *format,...) LOGGER_FUNC_FORMAT
Log a warning trace for the OPC UA audit log.
void SOPC_Logger_TraceSecurityAuditWarning(const char *format,...) LOGGER_FUNC_FORMAT
Log a warning trace for the security audit log.
void SOPC_Logger_TraceInfo(SOPC_Log_Module logModule, const char *format,...) LOGGER_FUNC_FORMAT_ENUM
Log a trace with the info level.
bool SOPC_Logger_Initialize(const SOPC_Log_Configuration *const logConfiguration)
Initializes the logger system.
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...
@ SOPC_LOG_MODULE_CLIENTSERVER
Definition: sopc_logger.h:49
SOPC_Log_Module
enumerate to define log modules
Definition: sopc_logger.h:47
SOPC_Log_Level SOPC_Logger_GetTraceLogLevel(void)
getter for the log level
@ SOPC_LOG_MODULE_PUBSUB
Definition: sopc_logger.h:50