-
Notifications
You must be signed in to change notification settings - Fork 7
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
feat: support env filter #55
Conversation
Signed-off-by: tison <[email protected]>
Signed-off-by: tison <[email protected]>
Signed-off-by: tison <[email protected]>
use logforth::Dispatch; | ||
use logforth::Logger; | ||
|
||
fn main() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It may be better if you add some examples of command line args for different env filter cases.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Things like RUST_LOG=info cargo run --features="env-filter" --example env_filter
..
I don't find a place suitable for this and would prefer to postpone it as a follow-up.
@@ -89,7 +89,7 @@ impl<const LAYOUT: bool, const APPEND: bool> Dispatch<LAYOUT, APPEND> { | |||
impl Dispatch { | |||
fn enabled(&self, metadata: &Metadata) -> bool { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is function unused?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's used in L175
Signed-off-by: tison <[email protected]>
This closes #54