Project

General

Profile

Actions

Feature #4013

closed

Logging API: enumeration of log modules

Added by Alex Afanasyev over 7 years ago. Updated over 7 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).

Actions #1

Updated by Alex Afanasyev over 7 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.

Actions #2

Updated by Junxiao Shi over 7 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.

Actions #3

Updated by Alex Afanasyev over 7 years ago

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

Updated by Alex Afanasyev over 7 years ago

  • Status changed from Code review to Closed
Actions

Also available in: Atom PDF