{"repo":"estk/log4rs","free":true,"listed":false,"github":"https://github.com/estk/log4rs","clone":"git clone https://github.com/estk/log4rs.git","description":"A highly configurable logging framework for Rust","language":"Rust","stars":1136,"topics":["logging","rust","log","json","xml"],"license":"Apache-2.0","category":"analytics","readme_excerpt":"log4rs log4rs is a highly configurable logging framework modeled after Java's Logback and log4j libraries. Quick Start log4rs.yaml: lib.rs: Rust Version Requirements 1.82 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. 1. Use the background rotation feature which spawns an os thread to do the compression. 2. Do not enable the gzip nor the zstd features. 3. Ensure the archives are small enough that the compression time is acceptable. For more information see the PR that added background rotation . Wasm Support If you are building this library for a Wasm target with the time trigger feature enabled, you need to make sure the Rust flag --cfg getrandom backend=\"wasm js\" is supplied to the compiler. This should be automatic when compiling with Cargo, but some configurations and tooling might require you to set an environment variable: License Licensed under","default_branch":null,"files":null,"tree":[],"storefront":"/r/estk","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/estk/log4rs/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}