Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Log level matching refactor #45

Merged
merged 17 commits into from
Jan 29, 2024
Merged

Log level matching refactor #45

merged 17 commits into from
Jan 29, 2024

Conversation

etianen
Copy link
Owner

@etianen etianen commented Jan 29, 2024

Captured now takes an explicit levelname and levelno. This allows 3rd-party logging framework integrations to be freed of the obligation to match stdlib logging levels.

The validation of validate_levelno was relaxed to just validate the type of the input, and correspondingly renamed to validate_level.

The DEFAULT_XXX class attributes on Logot were updated to prefer str and use string constants for easier reading in docs. The typing of log levels everywhere was updated to prefer str for better compatibility with 3rd-party logging frameworks.

The named logging helpers in logged were updated to use string level names for better compatibility with 3rd-party logging frameworks.

Needed by #28.

@etianen etianen added the enhancement New feature or request label Jan 29, 2024
@etianen etianen merged commit be04caf into main Jan 29, 2024
8 checks passed
@etianen etianen deleted the dh/level-redux branch January 29, 2024 17:05
@etianen etianen added the breaking change Breaking change to the public API label Feb 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breaking change Breaking change to the public API enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant