cover async shutdown failure path

This commit is contained in:
Nanaloveyuki
2026-06-14 02:17:23 +08:00
parent 3e0c8a5f99
commit c53aa38b89
3 changed files with 47 additions and 0 deletions
@@ -42,6 +42,7 @@ Detailed rules explaining key parameters and behaviors
- If the active async runtime uses shutdown clearing after idle and backlog still remains, the wrapped logger falls back to `close(clear=true)`.
- `clear=true` immediately closes and abandons pending records.
- In runtimes where shutdown waits for workers, the method then waits until the worker is no longer running before returning.
- After a worker-failure short-circuit, native-worker backends can still convert remaining backlog into dropped records, while compatibility backends skip that extra forced-clear step.
- The narrower library facade does not change any of these runtime-dependent shutdown rules; it only keeps the broader inspection helpers out of the direct public surface.
### How to Use