Full Logger

Easy to use logger for Rust

Formats

INI

Full support

Example

ini [error] ERROR_Y2023_M2_D15_H22_M44_S6_ML1676497446493 = Test

TOML

Full support

Example

```toml [error]

[error.file]

[error.file.debug] ERRORY2023M2D15H22M45S3_ML1676497503389 = "Test" ```

CSV

Full support

Example

csv 2023-02-15 22:46:05.745414400 +01:00;ERROR;Test;

Short-Tutorial

  1. Manage Log Files ```rust let workingdir = String::from("log"); let maxfilesize = 1000000; // 1000000o let filemanager = FileManager::new(String::from("log"), maxfilesize);

// Get file path to a file under maxfilesize (create one if necessary) let file = filemanager.getfile_path(); ```

  1. Set the file format

rust // Do not need other code set_file_format(FileFormat::CSV);

  1. Time to Log ```rust // CSV don't support sub-classes let path = None; let log_type = "ERROR"; let message = "Test";

log(file, None, log_type, message); ```

  1. Enjoy

csv 2023-02-15 22:55:33.779135600 +01:00;ERROR;Test;