Add opt-in logging via add_sink, silence library logger by default

This commit is contained in:
2026-06-03 09:33:32 +02:00
parent 6536ad60c5
commit 0faa01d89b
4 changed files with 48 additions and 9 deletions
+11
View File
@@ -6,6 +6,17 @@ All notable changes to this project will be documented in this file.
---
## [0.4.0] - 2026-06-03
### Added
- `add_sink(sink, *, level, **kwargs)` — public API for routing sqlmem log records to any loguru-compatible sink (stream, file, callable); supports all loguru `logger.add()` kwargs including `rotation`, `retention`, etc.
### Changed
- `pyproject.toml` — bumped version to `0.4.0`
- `config.py` — replaced destructive `logger.remove()` + forced default sink with `logger.disable("sqlmem")`; sqlmem is now silent by default and does not interfere with the host application's logging setup
---
## [0.3.0] - 2026-06-03
### Added