📝 Document async batching config

This commit is contained in:
Nanaloveyuki
2026-05-08 20:03:30 +08:00
parent 3abb88dab2
commit 3a05efba6a
3 changed files with 9 additions and 4 deletions
+3
View File
@@ -18,6 +18,8 @@ version 0.3.0
- feat: add async logger composition helpers `with_context_fields(...)`, `with_filter(...)`, `with_patch(...)`, `with_target(...)`, `child(...)`, and `with_timestamp(...)`
- feat: add `AsyncLoggerBuildConfig`, `parse_async_logger_build_config_text(...)`, and `build_async_logger(...)` for config-driven async logger assembly
- feat: add async lifecycle helpers `shutdown()`, `is_closed()`, `is_running()`, `has_failed()`, and `last_error()` for safer worker teardown and observability
- feat: add `parse_async_logger_config_text(...)`, `stringify_async_logger_config(...)`, and build-config serialization helpers for async config roundtrip support
- feat: add async batching controls `max_batch` and `flush=Never|Batch|Shutdown` for queue draining and flush timing
- feat: expose `Record::new(...)` for adapter and integration layers
- fix: repair native file backend FFI declarations so native target checks succeed again
- feat: support config keys `min_level`, `target`, `timestamp`, `sink.kind`, `sink.path`, `sink.append`, `sink.auto_flush`, `sink.text_formatter`, and `queue`
@@ -32,6 +34,7 @@ version 0.3.0
- test: cover config-built queued text logger flushing and pending count behavior
- test: cover partial drain behavior for config-built queued logger
- test: cover dropped-count reporting for bounded config-built queue
- test: add async logger lifecycle, config roundtrip, and batching/flush policy test seeds
- build: verify `bitlogger_async --target native` and `examples/async_basic --target native` compile successfully
### Example