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

Add log level of warn #4368

Open
weizhengde opened this issue Sep 10, 2024 · 3 comments
Open

Add log level of warn #4368

weizhengde opened this issue Sep 10, 2024 · 3 comments

Comments

@weizhengde
Copy link

In many other logging frameworks, log levels always include debug, info, warn, error. However, in go-zero framework, log levels only include debug, info, error, severe. In many business scenarios, warn level logs are more semantic.

@Sebastian-Getts
Copy link

Maybe Alert Level can be used

@shenpuyu0
Copy link

我确实需要warn级别的日志
增加warn后,可以更好的过滤出需要注意而不影响程序运行的日志
部分第三方库支持传入logger,但定义的接口大多都包含debug、info、warn、error四个级别, 增加warn后就免去了自定义logger的麻烦
希望能考虑一下

@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


I do need warn level logging
After adding warn, you can better filter out logs that require attention without affecting the running of the program.
Some third-party libraries support incoming loggers, but most of the defined interfaces include four levels: debug, info, warn, and error. Adding warn eliminates the trouble of customizing the logger.
Hope you can consider it

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

4 participants