Project

General

Profile

Actions

Task #1375

closed

Make logging level configurable

Added by Anonymous about 10 years ago. Updated about 10 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Management
Target version:
Start date:
03/20/2014
Due date:
% Done:

100%

Estimated time:

Description

Change logger from environment variable based to solely dependent on the configuration file.

Logging level should correspond to a log_level attribute of the general section. log_level should support case insensitive string level names described in logger.hpp or their equivalent numerical value.


Related issues 1 (0 open1 closed)

Blocks NFD - Task #1267: Logger: enable customization of log components/levelsClosed

Actions
Actions #1

Updated by Junxiao Shi about 10 years ago

  • Description updated (diff)

What about the logs produced before configuration file is processed?

Actions #2

Updated by Anonymous about 10 years ago

  • Status changed from New to In Progress

At the moment, it looks like we only have error level logging statement in main. I think warn and error statements print regardless of the set level, so things would be ok, but not robust.

If we want to allow non-warn/error statements in main, then we could add another logging level (e.g. STARTUP) that also ignores the set level, but doesn't indicate a problem (equivalent to INFO/DEBUG?).

Actions #3

Updated by Anonymous about 10 years ago

  • Status changed from In Progress to Code review
Actions #4

Updated by Alex Afanasyev about 10 years ago

And this one I suppose is 100% done and can be closed too?

Actions #5

Updated by Anonymous about 10 years ago

  • Status changed from Code review to Closed
  • % Done changed from 0 to 100
Actions

Also available in: Atom PDF