Skip to content

glpetrikov/FrameLog-rs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Lightweight Rust logging library with color support and minimal dependencies.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages