This crate is for easily creating rotating logs using the tracing crate. I plan on using it for every project, so it will improve. Already it's better than solutions most other languages might have, I think. It works. But it's still very preliminary.

Examples

```rust // prelude includes everything you need, including time zones: use tracingstoragelogger::prelude::*;

fn main() { // It's going to complain this is an unused variable. That's fine. Use an "" underscore if you wish: let logger = Logger::new( // Root path for all logs would be [projectroot]/logs,in this case: PathBuf::from(r"logs"), // Size of each file before rotating and adding a date: ContentLimit::Bytes(1024), // max number of files to archive for each file name: 4, chronotz::US::Eastern ); info!(message = "🍺🍺🍺 Cheers!", path = "general"); info!(message = "🌈🌈🌈 Peace and beauty", path = "general"); functiona(); }

[instrument(level = "trace")]

fn functiona(){ info!(message = "Inside function a", path = "Transactions", level = "error"); functionb();

warn!("Exiting function a");

}

[instrument(level = "debug")]

fn functionb(){ info!("Inside function b"); functionc("Some message".into()); warn!("Exiting function b");

}

[instrument]

fn functionc(someargument: &str){ info!("Inside function c"); error!("Exiting function c"); } ```