Add opt-in logging via add_sink, silence library logger by default
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user