framelog-rs

Crates.ioframelog-rs
lib.rsframelog-rs
version0.3.2
created_at2025-12-04 17:54:02.058226+00
updated_at2025-12-05 09:13:57.330982+00
descriptionLightweight logging library with colors and minimal dependencies
homepage
repositoryhttps://github.com/glpetrikov/FrameLog-rs
max_upload_size
id1966801
size27,688
(glpetrikov)

documentation

README

FrameLog-rs

Version 0.3.2 - Early development, API may change

FrameLog is a lightweight library for outputting logs to the console and file, version on Rust

C++ FrameLog: https://github.com/glpetrikov/FrameLog

Version 0.3.2 Beta

Language License

Status

Crates.io


GitHub Repo stars GitHub forks GitHub issues

Features

  • Colorful console output - ANSI colors for different log levels
  • File logging - Write logs to files with append mode
  • Lightweight - Only ~4-7 KiB compiled size
  • Thread-safe - Send + Sync implementations
  • Flexible file operations - Read, write, delete log files

Dependencies

  • Standard Rust library

License

FrameLog-rs is distributed under the MIT License.
See LICENSE for details.

Supported Platforms

Any platform with the Rust

Performance & Size

FrameLog is lightweight:

Why so small?

  • Minimal dependencies

Perfect for:

  • Docker containers (minimal images)
  • Fast compilation times
  • Quick program startup
  • for projects where you just need a logger

Status

FrameLog is currently in Beta stage

Quick Start

git clone https://github.com/glpetrikov/FrameLog-rs
cd FrameLog-rs
cargo test 

Installations

[dependencies]
framelog-rs = "0.3.2"

Building

install rustc

cargo build

Example

use framelog_rs::*;

fn main() -> std::io::Result<()> {
    // Console logging
    info!("Application started");
    warn!("Memory usage: {}%", 85);
    error!("Failed to connect");
    
    // File logging
    let mut fh = FileHandler::new("app.log")?;
    fh.writeln("Server running on port 8080")?;
    
    Ok(())
}

Authors

Gleb Petrikov

Roadmap

Reach C++ FrameLog level

Commit count: 0

cargo fmt