This PR adds a new "notice" logging level to the Quill logging library. The notice level is intended to capture events that are significant, but not necessarily errors, warnings, or informational logs. It fits between the INFO and WARNING levels and can be used for logging important runtime events that should be brought to the user's attention without signaling an issue with the program's behavior.
Changes
Introduced a new NOTICE level to the logging hierarchy.
Defined a corresponding integer value for the NOTICE level that fits between INFO and WARNING.
Updated the logger to support logging with NOTICE level.
Added tests to verify correct behavior of the NOTICE level.
Updated documentation to reflect the addition of the NOTICE level.
Example Usage
LOG_NOTICE(logger, "This is a notice message.");
Motivation
The addition of the NOTICE level provides developers with a more granular approach to logging. It helps distinguish between routine information and noteworthy events, without the higher severity of warnings. This can be particularly useful for logging important but expected events, system state changes, or key milestones in the application's lifecycle.
Tests
Added unit tests for logging at the NOTICE level.
Verified that the NOTICE level works seamlessly across all sinks and formats as expected.
Impact
No breaking changes.
Backward compatibility maintained.
New feature available for projects that need a more nuanced logging level between INFO and WARNING.
Checklist
[x] Added a new NOTICE logging level.
[x] Updated relevant tests.
[x] Updated documentation.
[x] Verified that the changes are backward compatible.
Summary
This PR adds a new "notice" logging level to the Quill logging library. The notice level is intended to capture events that are significant, but not necessarily errors, warnings, or informational logs. It fits between the
INFO
andWARNING
levels and can be used for logging important runtime events that should be brought to the user's attention without signaling an issue with the program's behavior.Changes
NOTICE
level to the logging hierarchy.NOTICE
level that fits betweenINFO
andWARNING
.NOTICE
level.NOTICE
level.NOTICE
level.Example Usage
Motivation
The addition of the
NOTICE
level provides developers with a more granular approach to logging. It helps distinguish between routine information and noteworthy events, without the higher severity of warnings. This can be particularly useful for logging important but expected events, system state changes, or key milestones in the application's lifecycle.Tests
NOTICE
level.NOTICE
level works seamlessly across all sinks and formats as expected.Impact
INFO
andWARNING
.Checklist
NOTICE
logging level.