Changes
Page history
Show more info when dumping the list of existing loggers (GCH+MSC)
authored
Aug 22, 2024
by
Gianluca Chiozzi
Show whitespace changes
Inline
Side-by-side
KnowledgeBase/CII.md
View page @
ab0f8dae
...
@@ -2262,7 +2262,11 @@ std::cout << "Current loggers (in addition to root logger):" << std::endl;
...
@@ -2262,7 +2262,11 @@ std::cout << "Current loggers (in addition to root logger):" << std::endl;
std::vector<log4cplus::Logger> list = log4cplus::Logger::getCurrentLoggers();
std::vector<log4cplus::Logger> list = log4cplus::Logger::getCurrentLoggers();
for (int i=0,n=list.size(); i<n; i++) {
for (int i=0,n=list.size(); i<n; i++) {
log4cplus::Logger elem = list[i];
log4cplus::Logger elem = list[i];
std::cout << elem.getName() << std::endl;
std::cout << elem.getName()
<< " additivity:"<<elem.getAdditivity()
<< " level:"<<elem.getLogLevel()
<< " isEnabledFor(INFO):" << elem.isEnabledFor(log4cplus::INFO_LOG_LEVEL)
<< std::endl;
}
}
```
```
...
...
...
...