rusty-logger 0.3.0

A modular and simple logger for rust
Documentation
use crate::types::{LogType, TimeUnit};

/// A struct that stores the core data of a logger
///
/// You may use the default configuration or make
/// your own with the `homemade` function depending
/// on your needs
pub struct Options {
    pub name: String,
    pub time_unit: TimeUnit,
    pub colors: bool,
    pub log_level: LogType,
}

impl Options {
    pub fn new(s: &str) -> Options {
        Options {
            name: s.to_string(),
            colors: true,
            time_unit: TimeUnit::Milliseconds,
            log_level: LogType::Info,
        }
    }
}