... | ... | @@ -898,7 +898,18 @@ log4cplus.appender.MyFileAppender.layout=log4cplus::PatternLayout |
|
|
log4cplus.appender.MyFileAppender.layout.ConversionPattern=[%-5p][%D{%Y/%m/%d %H:%M:%S:%q}][%-l][%t] %m%n
|
|
|
```
|
|
|
|
|
|
2. Pass the path to the log-config to MAL:
|
|
|
2. Configure log4cplus prior to using CII MAL:
|
|
|
```plaintext
|
|
|
|
|
|
#include <log4cplus/configurator.h>
|
|
|
|
|
|
std::string pathToLogPropFile = "...";
|
|
|
if (pathToLogPropFile .size() > 0) {
|
|
|
log4cplus::PropertyConfigurator::doConfigure(pathToLogPropFile );
|
|
|
}
|
|
|
```
|
|
|
|
|
|
3. Pass the path to the log-config to the specific MAL being loaded:
|
|
|
|
|
|
MAL logging is initialized from a configuration file, the path of which is read from mal properties with key mal::PROP_LOG_CONFIG_FILENAME. When loading mal, use set mal::PROP_LOG_CONFIG_FILENAME in mal properties.
|
|
|
|
... | ... | |