syn_crabs

Crates.iosyn_crabs
lib.rssyn_crabs
version0.2.0
sourcesrc
created_at2024-08-19 08:11:15.406053
updated_at2024-08-24 06:09:37.368361
descriptionA lightweight and configurable logging library with color-coded output for Rust applications.
homepage
repositoryhttps://github.com/yourusername/syn_crabs
max_upload_size
id1343599
size4,272
Orion AI (orionhunts-ai)

documentation

https://docs.rs/syn_crabs

README

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");
}
Commit count: 0

cargo fmt