Feature #4013
closed
Logging API: enumeration of log modules
Added by Alex Afanasyev over 7 years ago.
Updated over 7 years ago.
Description
The current API does not support enumeration of available module, which is necessary for some applications (e.g., to implement function like nfd --modules
).
@Junxiao: Was there any specific reason why we didn't provide such an API? I am thinking to simply add
/** \brief get list of names for registered logger modules
*/
static std::set<std::string>
getLoggerNames();
which is constructed from keys of m_loggers
.
- Tracker changed from Task to Feature
- Subject changed from Extend Logging API to allow enumeration of log modules to Logging API: enumeration of log modules
I agree with note-1 design.
- Status changed from New to Code review
- % Done changed from 0 to 100
- Status changed from Code review to Closed
Also available in: Atom
PDF