Skip to content

Commit

Permalink
feat(jzero): update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
jaronnie committed Apr 22, 2024
1 parent f6ff17c commit 9894a08
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 11 deletions.
2 changes: 1 addition & 1 deletion config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Mode = "dev"
Name = "jzero.rpc"

[Jzero]
ListenOnUnixSocket = "./jzero.sock"
ListenOnUnixSocket = "./jzero.sock"

[Log]
ServiceName = "jzero"
Expand Down
2 changes: 1 addition & 1 deletion docs/src/guide/config/limit.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ tag:
MaxConns = 100

# 替换成自己的 App 名称
[Jzero]
[App1]
GrpcMaxConns = 100
```

Expand Down
36 changes: 36 additions & 0 deletions docs/src/guide/config/log.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
---
title: 日志配置
icon: gears
star: true
order: 1
category: 配置
tag:
- Guide
---

::: tip jzero version > v0.8.0 支持在日志模式为 file 或者 volume 的情况下仍然输出到控制台
默认 LogToConsole 值为 true. 如果需要关闭, 可以设置为 false.
:::

```toml
[Log]
ServiceName = "app1"
Level = "info"
Mode = "file"
encoding = "plain"
KeepDays = 30
MaxBackups = 7
MaxSize = 50
Rotation = "size"

[App1]
LogToConsole = true
```

默认配置下日志最大占用空间: 2G

计算规则如下:

logs 文件夹一共 5 个文件. 每个文件最大占用 50MB, 最多备份 7 个. 即 50MB * 8 * 5


9 changes: 0 additions & 9 deletions docs/src/guide/config/logger.md

This file was deleted.

0 comments on commit 9894a08

Please sign in to comment.