Go to the documentation of this file.
26 #ifndef SOPC_LOG_MANAGER_H_
27 #define SOPC_LOG_MANAGER_H_
127 const char* logDirPath,
128 const char* logFileName,
129 const char* category,
void SOPC_Log_UserDoLog(const char *category, const char *const line)
Log event callback.
Definition: sopc_log_manager.h:53
struct SOPC_LogSystem_File_Configuration SOPC_LogSystem_File_Configuration
structure containing the file system log configuration
SOPC_LogSystem_File_Configuration fileSystemLogConfig
Definition: sopc_log_manager.h:88
SOPC_Log_Instance * SOPC_Log_CreateInstanceAssociation(SOPC_Log_Instance *pLogInst, const char *category)
const char * logDirPath
Definition: sopc_log_manager.h:60
void SOPC_Log_Trace(SOPC_Log_Instance *pLogInst, SOPC_Log_Level level, const char *format,...)
SOPC_Log_Level SOPC_Log_GetLogLevel(SOPC_Log_Instance *pLogInst)
struct SOPC_Log_Configuration SOPC_Log_Configuration
Defines logging configuration.
SOPC_Log_System
log system discriminant
Definition: sopc_log_manager.h:77
SOPC_Log_Level
Definition: sopc_log_manager.h:36
Defines logging configuration.
Definition: sopc_log_manager.h:96
char * SOPC_Log_GetFilePathPrefix(SOPC_Log_Instance *pLogInst)
@ SOPC_LOG_LEVEL_INFO
Definition: sopc_log_manager.h:39
structure containing the file system log configuration
Definition: sopc_log_manager.h:59
@ SOPC_LOG_LEVEL_DEBUG
Definition: sopc_log_manager.h:40
SOPC_Log_Instance * SOPC_Log_CreateFileInstance(const char *logDirPath, const char *logFileName, const char *category, uint32_t maxBytes, uint16_t maxFiles)
Creates a new log file and log instance and prints the starting timestamp.
void SOPC_Log_ClearInstance(SOPC_Log_Instance **ppLogInst)
SOPC_Log_UserDoLog * doLog
Definition: sopc_log_manager.h:70
SOPC_Log_Level
Definition: libs2opc_client.h:79
uint16_t logMaxFiles
Definition: sopc_log_manager.h:62
struct SOPC_Log_Instance SOPC_Log_Instance
Definition: sopc_log_manager.h:33
@ SOPC_LOG_SYSTEM_FILE
Definition: sopc_log_manager.h:78
uint32_t logMaxBytes
Definition: sopc_log_manager.h:61
@ SOPC_LOG_LEVEL_WARNING
Definition: sopc_log_manager.h:38
bool SOPC_Log_SetLogLevel(SOPC_Log_Instance *pLogInst, SOPC_Log_Level level)
SOPC_Log_System logSystem
Definition: sopc_log_manager.h:98
void SOPC_Log_Clear(void)
SOPC_Log_Level logLevel
Definition: sopc_log_manager.h:97
SOPC_Log_SystemConfiguration logSysConfig
Definition: sopc_log_manager.h:99
Provides possible logging configurations.
Definition: sopc_log_manager.h:87
void SOPC_Log_VTrace(SOPC_Log_Instance *pLogInst, SOPC_Log_Level level, const char *format, va_list args)
@ SOPC_LOG_SYSTEM_NO_LOG
Definition: sopc_log_manager.h:80
structure containing the user system log configuration
Definition: sopc_log_manager.h:69
void SOPC_Log_Initialize(void)
Initializes the logger manager: generate unique file name prefix for execution. This prefix is only r...
SOPC_LogSystem_User_Configuration userSystemLogConfig
Definition: sopc_log_manager.h:89
SOPC_Log_Instance * SOPC_Log_CreateUserInstance(const char *category, SOPC_Log_UserDoLog *logCallback)
@ SOPC_LOG_LEVEL_ERROR
Definition: sopc_log_manager.h:37
struct SOPC_LogSystem_User_Configuration SOPC_LogSystem_User_Configuration
structure containing the user system log configuration
@ SOPC_LOG_SYSTEM_USER
Definition: sopc_log_manager.h:79
union SOPC_Log_SystemConfiguration SOPC_Log_SystemConfiguration
Provides possible logging configurations.
bool SOPC_Log_SetConsoleOutput(SOPC_Log_Instance *pLogInst, bool activate)