26#ifndef SOPC_LOG_MANAGER_H_
27#define SOPC_LOG_MANAGER_H_
60 const char*
const line);
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.
union SOPC_Log_SystemConfiguration SOPC_Log_SystemConfiguration
Provides possible logging configurations.
struct SOPC_Log_Instance SOPC_Log_Instance
Definition sopc_log_manager.h:35
void SOPC_Log_Trace(SOPC_Log_Instance *pLogInst, SOPC_Log_Level level, const char *format,...)
Logs a trace with the given level.
struct SOPC_Log_Configuration SOPC_Log_Configuration
Defines logging configuration.
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 ...
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.
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
SOPC_Log_Level
Definition sopc_log_manager.h:38
@ SOPC_LOG_LEVEL_ERROR
Definition sopc_log_manager.h:39
@ SOPC_LOG_LEVEL_WARNING
Definition sopc_log_manager.h:40
@ SOPC_LOG_LEVEL_DEBUG
Definition sopc_log_manager.h:42
@ SOPC_LOG_LEVEL_INFO
Definition sopc_log_manager.h:41
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...
SOPC_Log_Instance * SOPC_Log_CreateUserInstance(const char *category, SOPC_Log_UserDoLog *logCallback)
Creates a new log instance for user mode.
SOPC_Log_Level SOPC_Log_GetLogLevel(SOPC_Log_Instance *pLogInst)
getter for the log level of an instance
SOPC_Log_System
log system discriminant
Definition sopc_log_manager.h:84
@ SOPC_LOG_SYSTEM_FILE
Definition sopc_log_manager.h:85
@ SOPC_LOG_SYSTEM_NO_LOG
Definition sopc_log_manager.h:87
@ SOPC_LOG_SYSTEM_USER
Definition sopc_log_manager.h:86
bool SOPC_Log_SetConsoleOutput(SOPC_Log_Instance *pLogInst, bool activate)
Activates the console output for logged traces (same active level as log file)
char * SOPC_Log_GetCurrentFilename(const SOPC_Log_Instance *pLogInst)
Get the name of the current log file.
struct SOPC_LogSystem_File_Configuration SOPC_LogSystem_File_Configuration
structure containing the file log configuration
bool SOPC_Log_SetLogLevel(SOPC_Log_Instance *pLogInst, SOPC_Log_Level level)
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
structure containing the file log configuration
Definition sopc_log_manager.h:66
uint32_t logMaxBytes
Definition sopc_log_manager.h:68
const char * logDirPath
Definition sopc_log_manager.h:67
uint16_t logMaxFiles
Definition sopc_log_manager.h:69
structure containing the user system log configuration
Definition sopc_log_manager.h:76
SOPC_Log_UserDoLog * doLog
Definition sopc_log_manager.h:77
Defines logging configuration.
Definition sopc_log_manager.h:103
SOPC_Log_Level logLevel
Definition sopc_log_manager.h:104
SOPC_Log_System logSystem
Definition sopc_log_manager.h:105
SOPC_Log_SystemConfiguration logSysConfig
Definition sopc_log_manager.h:106
Provides possible logging configurations.
Definition sopc_log_manager.h:94
SOPC_LogSystem_File_Configuration fileSystemLogConfig
Definition sopc_log_manager.h:95
SOPC_LogSystem_User_Configuration userSystemLogConfig
Definition sopc_log_manager.h:96