log-table
A simple Rust library providing beautiful and colorful table logging functionality with file output support.
Installation
Add log-table to your Cargo.toml.
= "0.1.1"
Features
- Colored Output: Customize the appearance of your tables with different colors for borders and content
- File Logging: Save table output to log files with automatic directory creation
- Dynamic Sizing: Tables automatically adjust to content width
- Unicode Borders: Beautiful box-drawing characters for clean table presentation
- Builder Pattern: Fluent interface for easy configuration
- Memory Efficient: No unnecessary allocations or copies
Usage
use ;
use ;
Output will look like:
┌────────────────────────────────────────────────────────┐
│ USDT Transfer │
├───────────┬────────────────────────────────────────────┤
│ Key │ Value │
├───────────┼────────────────────────────────────────────┤
│ msgSender │ 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266 │
├───────────┼────────────────────────────────────────────┤
│ fromToken │ 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266 │
├───────────┼────────────────────────────────────────────┤
│ toToken │ 0x4200000000000000000000000000000000000060 │
├───────────┼────────────────────────────────────────────┤
│ amount │ 1000000000000000000 │
└───────────┴────────────────────────────────────────────┘
License
This project is licensed under the MIT License.