Skip to content

Logging levels to different outputs #364

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

Open
Tiefseetauchner opened this issue May 2, 2025 · 0 comments
Open

Logging levels to different outputs #364

Tiefseetauchner opened this issue May 2, 2025 · 0 comments

Comments

@Tiefseetauchner
Copy link

I think it'd be a useful addition to allow logging different logging levels to different outputs. If this is already possible, please excuse my inability to search issues or read documentation or read code. Especially the last.

Self deprication aside, it's currently hardcoded what targets can be used with env_logger. The current issue I'm facing is the following:

  • I log info logs
  • I log error logs
  • Both go to stderr, stdout or a pipe I guess

I don't like that, I'd prefer logging info to stdout and error to stderr. That should be relatively simple with a Mixed target or smtg, and implementing the different targets seperately instead of matching an enum. That'd even open up the possibility for custom targets!

Do I dream too big? Yes. But!

Okay, yes.

Thanks, hope this sparks some ideas, I'm sorry for being so casual k thx bye <3

(also, letting me implement it is a bad idea I cannot do the rust well)

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