Skip to content

different log level per package #156

@thewh1teagle

Description

@thewh1teagle

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions