We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
For example, "Info" for console, "Trace" for file, etc.
The text was updated successfully, but these errors were encountered:
Yep, you can attach a threshold filter to them!
Sorry, something went wrong.
I tried like below:
refresh_rate: 30 seconds appenders: stdout: kind: console encoder: pattern: "{d(%Y-%m-%d %H:%M:%S)} [{h({l})}] {m}{n}" decode: kind: file path: "log/debug.log" append: false filters: - kind: threshold level: debug encoder: pattern: "{d(%Y-%m-%d %H:%M:%S)} [{l}] - {M} - {m}{n}" root: level: info appenders: - stdout - decode
But got a error:
log4rs: error deserializing component: no filter deserializer for kind threshold registered
threshold
Solved: Should add the "threshold_filter" to Cargo.toml:
log4rs = { version = "*", features = ["threshold_filter"] }
Yep, it's not part of the default feature set. Glad you got it working!
No branches or pull requests
For example, "Info" for console, "Trace" for file, etc.
The text was updated successfully, but these errors were encountered: