**Expected behavior**
A clear and concise description of what you expected to happen.
**Screenshots**
If applicable, add screenshots to help explain your problem.
**Environments (please complete the following information):**
- OS: [e.g. Linux]
- go-zero version [e.g. 1.2.1]
- goctl version [e.g. 1.2.1, optional]
**More description**
go-zero 的日志轮转,我发现在使用 zap 的时候 日志会混乱,{"level":"error","ts":"2024-09-25T16:22:30.567+0800","caller":"logger/logging_test.go:150","msg":"test msg","
"a":123,"v":1g_test.go:1374-09-25T16:22:30.567+0800","caller":"logger/logging_test.go:150","msg":"test msg","a":123,"v":1}
"a":123,"v":1g_test.go:1374-09-25T16:22:30.567+0800","caller":"logger/logging_test.go:150","msg":"test msg","a":123,"v":1}
"a":123,"v":1g_test.go:1374-09-25T16:22:30.567+0800","caller":"logger/logging_test.go:150","msg":"test msg","a":123,"v":1}
"a":123,"v":1g_test.go:1374-09-25T16:22:30.567+0800","caller":"logger/logging_test.go:150","msg":"test msg","
"a":123,"v":1g_test.go:1374-09-25T16:22:30.567+0800","caller":"logger/logging_test.go:150","msg":"test msg","v":1,"a":123}
"a":123,"v":1g_test.go:1374-09-25T16:22:30.567+0800","caller":"logger/logging_test.go:150","msg":"test msg","v":1,"a":123}
"a":123,"v":1g_test.go:1374-09-25T16:22:30.567+0800","caller":"logger/logging_test.go:150","msg":"test msg","v":1,"a":123}输出类似这种,我仔细看了一下是 channel 缓冲导致的,在同时打印多种日志级别即会出现
Describe the bug A clear and concise description of what the bug is.
To Reproduce Steps to reproduce the behavior, if applicable:
The code is
The error is
{"level":"info","ts":1727265133.6971579,"msg":"hello world"} {"level":"info","ts":1727265133.6971579,"msg":"hello world"}{"level":"info","ts":1727265133.6971579,"msg":"hello world"}{"level":"info","ts":1727265133.6971579,"msg":"hello world"} {"level":"warn","ts":1727265133.697186,"msg":"hello world"}