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

different log level per package #156

Open
thewh1teagle opened this issue Jan 24, 2025 · 0 comments
Open

different log level per package #156

thewh1teagle opened this issue Jan 24, 2025 · 0 comments
Labels
enhancement New feature or request

Comments

@thewh1teagle
Copy link

Is your feature request related to a problem? Please describe.
Currently I parse the log level from GO_LOG so users can specify it from environment variable eg as GO_LOG=DEBUG go run
But I want to specify log level per package as we can do with Rust log:

Describe the solution you'd like

Option to set log level for specific modules/packages

RUST_LOG=package_name=DEBUG,other_package=INFO` cargo run # Log level per package
RUST_LOG=DEBUG` cargo run # Global log level

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
I don't know if currently it's even possible to change other loggers

@thewh1teagle thewh1teagle added the enhancement New feature or request label Jan 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant