|
libcmutils 0.6.5
Multi-platform C99 utility library
|
Log system object. More...
Data Fields | |
| void(* | AddAppender )(const CMUTIL_LogSystem *logsys, CMUTIL_LogAppender *appender) |
| Add a log appender to the log system. | |
| CMUTIL_ConfLogger *(* | CreateLogger )(const CMUTIL_LogSystem *logsys, const char *name, CMLogLevel level, CMBool additivity) |
| Create a new logger object. | |
| CMUTIL_Logger *(* | GetLogger )(const CMUTIL_LogSystem *logsys, const char *name) |
| Get a logger by name. | |
| void(* | Destroy )(CMUTIL_LogSystem *logsys) |
| Destroy the log system and free its resources. | |
| CMBool(* | UpdateEnv )(CMUTIL_LogSystem *logsys) |
| Function for updating the environment of the log system. | |
Log system object.
| void(* CMUTIL_LogSystem::AddAppender) (const CMUTIL_LogSystem *logsys, CMUTIL_LogAppender *appender) |
Add a log appender to the log system.
This method will add a log appender to the log system.
| logsys | The log system object. |
| appender | The log appender to be added. |
| CMUTIL_ConfLogger *(* CMUTIL_LogSystem::CreateLogger) (const CMUTIL_LogSystem *logsys, const char *name, CMLogLevel level, CMBool additivity) |
Create a new logger object.
This method will create a new logger object with the given name, log level, and additivity.
| logsys | The log system object. |
| name | The name of logger. If NULL or empty string is given, a root logger will be created. |
| level | The log level of this logger. |
| additivity | If CMTrue, this logger will also log to parent loggers' appenders. |
| CMUTIL_Logger *(* CMUTIL_LogSystem::GetLogger) (const CMUTIL_LogSystem *logsys, const char *name) |
Get a logger by name.
This method retrieves a logger object by its name from the log system.
| logsys | The log system object. |
| name | The name of the logger to retrieve. |
| void(* CMUTIL_LogSystem::Destroy) (CMUTIL_LogSystem *logsys) |
Destroy the log system and free its resources.
This method releases all resources associated with the log system and frees any allocated memory.
| logsys | A pointer to the CMUTIL_LogSystem object to be destroyed. |
| CMBool(* CMUTIL_LogSystem::UpdateEnv) (CMUTIL_LogSystem *logsys) |
Function for updating the environment of the log system.
This function is used to update or reconfigure the environment of a given log system. It allows dynamic changes to the log system's environment settings. Use when a new process is created using a fork.
| logsys | A pointer to the CMUTIL_LogSystem object whose environment should be updated. |