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
- 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+Syncimplementations - Flexible file operations - Read, write, delete log files
- Standard Rust library
FrameLog-rs is distributed under the MIT License.
See LICENSE for details.
Any platform with the Rust
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
FrameLog is currently in Beta stage
git clone https://github.com/glpetrikov/FrameLog-rs
cd FrameLog-rs
cargo test [dependencies]
framelog-rs = "0.3.2"install rustc
cargo builduse 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(())
}Gleb Petrikov
Reach C++ FrameLog level