Skip to content

feat(logger): add LevelFilterLogger to forward only messages at or ab… - #242

Open
jekabs-karklins wants to merge 1 commit into
masterfrom
feat/level-filter-logger
Open

jekabs-karklins wants to merge 1 commit into
masterfrom
feat/level-filter-logger

Conversation

@jekabs-karklins

Copy link
Copy Markdown
Contributor

Description

This PR adds utility calss which can wrap Logger and filters messages based on log level. Can be used in combination with any Logger in the library

…ove a minimum level

Wraps any Logger, so the level threshold can be set per destination,
e.g. everything to console and only WARN and above to Graylog.
Also exports the LEVEL enum so callers can pass a level.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants