Skip to content

Latest commit

 

History

History
22 lines (12 loc) · 656 Bytes

File metadata and controls

22 lines (12 loc) · 656 Bytes

Rustylog

Simple logging utility implemented in Rust for Rust. Thread safe implementation, loggers can be moved or created in threads, file and stdout output will not be corrupted!

Compiling the test may be done using bash cargo run or if you have Odin installed bash odin build

Download

Easiest is to just copy Rustylog.rs and paste it into your project.

Usage

Writer::Init(); // Very important to execute before creating any loggers

let mut myLogger = Logger::new("Main");

myLogger.info("Logger created!");

Writer::clean_up(); // Not always needed but not doing it can lead to missing log msgs.