#log-level #configurable #logging #applications #log-error #env-var #utility

syn_crabs

A lightweight and configurable logging library with color-coded output for Rust applications

2 unstable releases

0.2.0 Aug 24, 2024
0.1.0 Aug 19, 2024

#463 in Debugging

Download history 132/week @ 2024-08-16 138/week @ 2024-08-23 3/week @ 2024-08-30 19/week @ 2024-09-13 14/week @ 2024-09-20 27/week @ 2024-09-27 7/week @ 2024-10-04

67 downloads per month

MIT/Apache

5KB

Syn_Crabs

syn_crabs is a lightweight and configurable logging utility for Rust applications, featuring color-coded log output.

Features

  • Color-coded log levels (ERROR, WARN, INFO, DEBUG, TRACE)
  • Configurable log levels via the RUST_LOG environment variable
  • Easy integration with any Rust application

Installation

Add syn_crabs to your Cargo.toml:

[dependencies]
syn_crabs = "0.1.0"

Usage

Setting Log Level:

RUST_LOG=debug cargo run

Implementing:

use logalicious_rs::setup_logging;

fn main() {
    setup_logging().expect("Failed to initialize logging");
    log::info!("This is an info message");
    log::error!("This is an error message");
}

Dependencies

~1–11MB
~65K SLoC