📝 Document unified async logger config

This commit is contained in:
Nanaloveyuki
2026-05-08 17:48:11 +08:00
parent d4c342f93d
commit 7125311873
3 changed files with 16 additions and 0 deletions
+2
View File
@@ -16,6 +16,7 @@ version 0.3.0
- feat: add `bitlogger_async/` as a separate native-target async adapter package
- feat: add `AsyncLogger`, `async_logger(...)`, `run()`, `wait_idle()`, `close()`, `pending_count()`, and `dropped_count()` on top of `moonbitlang/async`
- 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: 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`
@@ -37,6 +38,7 @@ version 0.3.0
- docs: update `examples/basic` with JSON config loading example
- docs: update `examples/basic` to use `parse_and_build_logger(...)` with explicit error handling in `main`
- docs: add `examples/async_basic` to show async worker startup and queue-backed logging flow
- docs: update `examples/async_basic` to use unified JSON-driven async logger config
- docs: update root README, English README, and Mooncake README with config usage notes
- docs: update root README and English README with async adapter notes and current scope
- chore: ignore local `.mooncakes/` cache directory in git