-
Notifications
You must be signed in to change notification settings - Fork 45
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
stdout/stderr based on log level #69
Comments
looks like let me check it can meet the requirement or we could enhance the writer. |
After consideration, I think it's no needed to introduce a new Writer but worth to add a helper/type function to make it easier. So I add a commit df27c52 @fireflycons could you please take a look the example here https://github.com/phuslu/log?tab=readme-ov-file#customize-the-log-writer ? If OK, I'd like release a new tag. |
Nice - go for it! |
v1.0.93 tagged/released, thanks |
Hi @phuslu
Here's another suggestion 😁
Some log forwarders like filebeat can switch on the stream on which logs are emitted. It would be nice if for the standard logger type we could select the output stream based on the log level, e.g. severity of warning or higher goes to stderr and lower levels go to stdout. User can set at which level the change from stdout to stderr happens.
The text was updated successfully, but these errors were encountered: