🔖 prepare 0.5.2 release notes

This commit is contained in:
Nanaloveyuki
2026-06-07 20:34:25 +08:00
parent c0fe7999c4
commit a3d0a695de
7 changed files with 140 additions and 4 deletions
+2 -2
View File
@@ -88,7 +88,7 @@ pub struct AsyncLogger[S] {
linger_ms : Int
flush_policy : AsyncFlushPolicy
sink : S
flush_sink : (S) -> Int
flush_sink : (S) -> Int raise
context_fields : Array[@bitlogger.Field]
filter : (@bitlogger.Record) -> Bool
patch : @bitlogger.RecordPatch
@@ -106,7 +106,7 @@ pub fn[S] async_logger(
config~ : AsyncLoggerConfig = AsyncLoggerConfig::new(),
min_level~ : @bitlogger.Level = @bitlogger.Level::Info,
target~ : String = "",
flush~ : (S) -> Int = fn(_) { 0 },
flush~ : (S) -> Int raise = fn(_) { 0 },
) -> AsyncLogger[S] {
{
min_level,