Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Logs are rotated based on size, and exceeding a certain amount will result in log loss. #4394

Open
JellyTony opened this issue Sep 25, 2024 · 0 comments

Comments

@JellyTony
Copy link

Describe the bug
A clear and concise description of what the bug is.

To Reproduce
Steps to reproduce the behavior, if applicable:

  1. The code is

    MaxSize(1)

Rotation("size")


2. The error is


**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**
发现  size轮转的备份规则是 RFC3339,当在1s 内写入大量日志切发生轮转行为,就会丢日志,因为命名规则是按秒命名的
@kevwan kevwan changed the title 日志大小轮转,超时一定的数量会丢日志, Logs are rotated based on size, and exceeding a certain amount will result in log loss. Sep 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant