Project

General

Profile

Feature #4013

Logging API: enumeration of log modules

Added by Alex Afanasyev over 3 years ago. Updated over 3 years ago.

Status:
Closed
Priority:
Normal
Category:
Utils
Target version:
Start date:
03/27/2017
Due date:
% Done:

100%

Estimated time:

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).

#1

Updated by Alex Afanasyev over 3 years ago

@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.

#2

Updated by Junxiao Shi over 3 years ago

  • 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.

#3

Updated by Alex Afanasyev over 3 years ago

  • Status changed from New to Code review
  • % Done changed from 0 to 100
#4

Updated by Alex Afanasyev over 3 years ago

  • Status changed from Code review to Closed

Also available in: Atom PDF