Skip to content
/ woody Public

A dead simple logger that works globally and across threads.

License

Notifications You must be signed in to change notification settings

trvswgnr/woody

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Woody

A logger for Rust that's *actually* easy to use.

Features

  • Easy to use: Just import the macros and you're good to go. No need to configure anything. No need to create a logger. Just log.
  • Versatile: Log messages at different levels, works across threads, and can be used in libraries.
  • Lightweight: Relies only on lazy_static for thread safety and chrono for timestamps (in addition to the standard library).

Usage

Add this to your Cargo.toml:

[dependencies]
woody = { git = "https://github.com/trvswgnr/woody.git" }

Then, add this to your crate root:

use woody::*;

Examples

Basic

fn main() {
    log!(Info, "An info message.");
    debug!("A debug message.");
    info!("An info message.");
    warn!("A warning message.");
    error!("An error message.");
    trace!("A trace message.");
}

Logs are output to the debug.log file in the current directory.

About

A dead simple logger that works globally and across threads.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages