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

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

#509 in Debugging

Download history 98/week @ 2024-08-13 169/week @ 2024-08-20 6/week @ 2024-08-27 13/week @ 2024-09-10 10/week @ 2024-09-17 17/week @ 2024-09-24 27/week @ 2024-10-01

56 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