Task #1375
closed
Make logging level configurable
Added by Anonymous over 10 years ago.
Updated over 10 years ago.
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.
- Description updated (diff)
What about the logs produced before configuration file is processed?
- 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?).
- Status changed from In Progress to Code review
And this one I suppose is 100% done and can be closed too?
- Status changed from Code review to Closed
- % Done changed from 0 to 100
Also available in: Atom
PDF