Go to the documentation of this file.
26 #ifndef SOPC_LOG_MANAGER_H_
27 #define SOPC_LOG_MANAGER_H_
60 const char*
const line);
struct SOPC_LogSystem_File_Configuration SOPC_LogSystem_File_Configuration
structure containing the file log configuration
SOPC_LogSystem_File_Configuration fileSystemLogConfig
Definition: sopc_log_manager.h:95
SOPC_Log_Instance * SOPC_Log_CreateInstanceAssociation(SOPC_Log_Instance *pLogInst, const char *category)
Creates a new log instance using the same log file than existing log instance and prints the starting...
const char * logDirPath
Definition: sopc_log_manager.h:67
void SOPC_Log_Trace(SOPC_Log_Instance *pLogInst, SOPC_Log_Level level, const char *format,...)
Logs a trace with the given level.
SOPC_Log_Level SOPC_Log_GetLogLevel(SOPC_Log_Instance *pLogInst)
getter for the log level of an instance
void SOPC_Log_UserDoLog(const char *timestampUtc, const char *category, const SOPC_Log_Level level, const char *const line)
Log event callback.
Definition: sopc_log_manager.h:57
struct SOPC_Log_Configuration SOPC_Log_Configuration
Defines logging configuration.
SOPC_Log_System
log system discriminant
Definition: sopc_log_manager.h:84
SOPC_Log_Instance * SOPC_Log_CreateFileInstance(const SOPC_CircularLogFile_Configuration *pConf, const char *category)
Creates a new log file and log instance and prints the starting timestamp.
SOPC_Log_Level
Definition: sopc_log_manager.h:38
Defines logging configuration.
Definition: sopc_log_manager.h:103
char * SOPC_Log_GetCurrentFilename(const SOPC_Log_Instance *pLogInst)
Get the name of the current log file.
@ SOPC_LOG_LEVEL_INFO
Definition: sopc_log_manager.h:41
structure containing the file log configuration
Definition: sopc_log_manager.h:66
@ SOPC_LOG_LEVEL_DEBUG
Definition: sopc_log_manager.h:42
void SOPC_Log_ClearInstance(SOPC_Log_Instance **ppLogInst)
Stops allowing to log traces in the given log instance. Log file is closed when last log instance is ...
SOPC_Log_UserDoLog * doLog
Definition: sopc_log_manager.h:77
SOPC_Log_Level
Definition: libs2opc_client.h:79
uint16_t logMaxFiles
Definition: sopc_log_manager.h:69
struct SOPC_Log_Instance SOPC_Log_Instance
Definition: sopc_log_manager.h:35
@ SOPC_LOG_SYSTEM_FILE
Definition: sopc_log_manager.h:85
uint32_t logMaxBytes
Definition: sopc_log_manager.h:68
@ SOPC_LOG_LEVEL_WARNING
Definition: sopc_log_manager.h:40
bool SOPC_Log_SetLogLevel(SOPC_Log_Instance *pLogInst, SOPC_Log_Level level)
SOPC_Log_System logSystem
Definition: sopc_log_manager.h:105
SOPC_Log_Level logLevel
Definition: sopc_log_manager.h:104
SOPC_Log_SystemConfiguration logSysConfig
Definition: sopc_log_manager.h:106
Provides possible logging configurations.
Definition: sopc_log_manager.h:94
void SOPC_Log_VTrace(SOPC_Log_Instance *pLogInst, SOPC_Log_Level level, const char *format, va_list args)
Logs a trace with the given level.
@ SOPC_LOG_SYSTEM_NO_LOG
Definition: sopc_log_manager.h:87
structure containing the user system log configuration
Definition: sopc_log_manager.h:76
SOPC_LogSystem_User_Configuration userSystemLogConfig
Definition: sopc_log_manager.h:96
SOPC_Log_Instance * SOPC_Log_CreateUserInstance(const char *category, SOPC_Log_UserDoLog *logCallback)
Creates a new log instance for user mode.
@ SOPC_LOG_LEVEL_ERROR
Definition: sopc_log_manager.h:39
struct SOPC_LogSystem_User_Configuration SOPC_LogSystem_User_Configuration
structure containing the user system log configuration
structure containing the file system log configuration
Definition: sopc_circular_log_file.h:39
@ SOPC_LOG_SYSTEM_USER
Definition: sopc_log_manager.h:86
union SOPC_Log_SystemConfiguration SOPC_Log_SystemConfiguration
Provides possible logging configurations.
bool SOPC_Log_SetConsoleOutput(SOPC_Log_Instance *pLogInst, bool activate)
Activates the console output for logged traces (same active level as log file)