mirror of
https://github.com/Nanaloveyuki/BitLogger.git
synced 2026-05-30 15:42:25 +00:00
⬆️ 升级 Moonbit 版本和 Async 版本
This commit is contained in:
@@ -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 / 示例:
|
||||
|
||||
@@ -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),
|
||||
|
||||
@@ -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),
|
||||
|
||||
+1
-1
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user