log_t 0.1.0

A simple logging library written by somebody learning Rust at the time
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
pub mod logging_abstraction {
    pub trait Logger {
        
        ///Initializes the channel of communication to whatever destination the logger sends data to.
        fn open(&mut self) -> Option<std::io::Error>;

        ///Writes the a slice's data to the destination of the logger.
        fn write_slice<T: std::fmt::Display>(&self, to_write: &[&T]) -> Option<std::io::Error>;
        
        ///Writes the object's data to the destination of the logger.
        fn write<T: std::fmt::Display>(&self, to_write: T) -> Option<std::io::Error>;
    }
}