diff --git a/bitlogger/README.mbt.md b/bitlogger/README.mbt.md index 17c3d55..a679442 100644 --- a/bitlogger/README.mbt.md +++ b/bitlogger/README.mbt.md @@ -19,7 +19,7 @@ BitLogger 是一个使用 MoonBit 编写的结构化日志库. ## Example / 示例 -```mbt check +```moonbit test { let logger = Logger::new(console_sink(), min_level=Level::Debug, target="demo") .with_timestamp() @@ -28,6 +28,13 @@ test { } ``` +Project command note / 项目命令说明: + +- use `moon check` / `moon test` for local project verification +- 本地项目校验请使用 `moon check` / `moon test` +- `.mbt.md` literate docs still use MoonBit's document-test conventions internally +- `.mbt.md` 文档内部仍沿用 MoonBit 的文档测试约定 + ## Where To Go Next / 下一步 - examples / 示例: diff --git a/bitlogger_async/async_logger_native.mbt b/bitlogger_async/async_logger_native.mbt index d0e04d3..8318cba 100644 --- a/bitlogger_async/async_logger_native.mbt +++ b/bitlogger_async/async_logger_native.mbt @@ -331,7 +331,7 @@ pub fn[S] async_logger( context_fields: [], filter: fn(_) { true }, patch: @bitlogger.identity_patch(), - queue: @async.Queue::new(kind=queue_kind_of(config)), + queue: @async.Queue(kind=queue_kind_of(config)), pending_count: Ref::new(0), dropped_count: Ref::new(0), is_closed: Ref::new(false), diff --git a/bitlogger_async/async_logger_stub.mbt b/bitlogger_async/async_logger_stub.mbt index 6fd36b7..76f3662 100644 --- a/bitlogger_async/async_logger_stub.mbt +++ b/bitlogger_async/async_logger_stub.mbt @@ -331,7 +331,7 @@ pub fn[S] async_logger( context_fields: [], filter: fn(_) { true }, patch: @bitlogger.identity_patch(), - queue: @async.Queue::new(kind=queue_kind_of(config)), + queue: @async.Queue(kind=queue_kind_of(config)), pending_count: Ref::new(0), dropped_count: Ref::new(0), is_closed: Ref::new(false), diff --git a/moon.mod.json b/moon.mod.json index 85eeea5..630c1a1 100644 --- a/moon.mod.json +++ b/moon.mod.json @@ -3,7 +3,7 @@ "version": "0.4.1", "deps": { "maria/json_parser": "0.1.1", - "moonbitlang/async": "0.18.1" + "moonbitlang/async": "0.19.0" }, "readme": "README.mbt.md", "repository": "https://github.com/Nanaloveyuki/BitLogger",