odygrd / quill

Asynchronous Low Latency C++ Logging Library
MIT License
1.49k stars 152 forks source link

Add "Notice" Logging Level #526

Closed Byrdman32 closed 4 weeks ago

Byrdman32 commented 4 weeks ago

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

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

Impact

Checklist

Byrdman32 commented 4 weeks ago

Sorry about that, I did all my initial development at v6.1.2 and when I merged up to master I apparently missed some things.

All the requested changes should be fixed now.

odygrd commented 4 weeks ago

looks good, thank you : )