Skip to content

fix(core): clear foreign root handlers by default - #30

Merged
PakitoSec merged 1 commit into
mainfrom
fix/core-clear-root-handlers-by-default-c9e971d
Sep 4, 2026
Merged

fix(core): clear foreign root handlers by default#30
PakitoSec merged 1 commit into
mainfrom
fix/core-clear-root-handlers-by-default-c9e971d

Conversation

@PakitoSec

Copy link
Copy Markdown
Owner

Summary

  • clear all root handlers during init_logger() by default so Logurich stays the single logging sink and foreign formatters do not receive Rich-backed record attributes unexpectedly
  • add the clear_handlers=False opt-out for runtimes that must keep existing root handlers attached
  • document the root-handler ownership behavior in the README and v1 migration guide, and bump the package version to 1.0.1

Testing

  • add pytest coverage for default handler clearing, the clear_handlers=False opt-out, forced reconfiguration cleanup, and ensuring foreign handlers do not observe Logurich records when clearing is enabled

@PakitoSec PakitoSec self-assigned this Sep 4, 2026
@PakitoSec
PakitoSec merged commit 19a11c5 into main Sep 4, 2026
6 checks passed
@PakitoSec
PakitoSec deleted the fix/core-clear-root-handlers-by-default-c9e971d branch September 4, 2026 15:42
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.

1 participant