Dyn Logger

This crate provides a configuration option for the tracing logging crate, allowing you to configure the logging based on a logging.toml file. With this file, you can easily change the log level per module, as well as the format and other options for the logger. Additionally, the crate allows you to configure multiple file loggers, each with its own log level, format, color, and path options.

Usage

To use this crate, simply add it as a dependency to your Cargo.toml file:

toml [dependencies] dyn-logger = "0.1"

Then, configure your logger as shown below. This will read the logging.toml file in your project's root directory, and apply the configuration settings to your tracing logger.

```rust fn main() -> Result<(), Box> { let logger = DynamicLogger::new("path/to/logging.toml")? .withstdout()? .withfile_logger()?; logger.init();

// ...

Ok(())

} ```

Configuration

The logging.toml file allows you to configure the logging options for your application. Here is an example logging.toml.

License

This crate is licensed under the EUPL-1.2 License. See the LICENSE file for more information.