You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
use log::{error, info, warn};use log4rs;fnmain(){
log4rs::init_file("config/log4rs.yaml",Default::default()).unwrap();info!("booting up");// ...}
Rust Version Requirements
1.75
Building for Dev
Run the tests: cargo test --all-features
Run the tests for windows with cross:
cross test --target x86_64-pc-windows-gnu
Run the tests for all individual features: ./test.sh
Run the tests for all individual features for windows with
cross: ./test.sh win
Compression
If you are using the file rotation in your configuration there is a known
substantial performance issue with either the gzip or zstd
features. When rolling files it will zip log archives automatically. This is
a problem when the log archives are large as the zip process occurs in
the main thread and will halt the process until the zip process
completes.
The methods to mitigate this are as follows.
Use the background_rotation feature which spawns an os thread to do the compression.
Do not enable the gzip nor the zstd features.
Ensure the archives are small enough that the compression time is acceptable.
Unless you explicitly state otherwise, any contribution intentionally submitted
for inclusion in the work by you shall be dual licensed as above, without any
additional terms or conditions.