Skip to content

stewthestew/Wood

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Wood 🌲

A simple and colorful logging crate for Rust.

Installation

Add the following to your Cargo.toml:

[dependencies]
wood = { git = "https://github.com/stewthestew/Wood.git" }

Usage

use wood::Logger;

Logger::info("This is an info message.");
Logger::warn("This is a warning message.");
Logger::error("An error occurred!");
Logger::fatal("A fatal error occurred!");
Logger::success("Operation completed successfully.");
Logger::debug("This is a debug message.");
Simple::extra("ALERT", "\x1b[31m", "This is a custom alert."); // This will not provide the current date

About

Wood made out of logs

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages