1 unstable release
| 0.1.0 | Dec 14, 2025 |
|---|
#1593 in Debugging
Used in 2 crates
18KB
351 lines
🔥 Censer
Beautiful, structured logging for the terminal.
What is Censer?
A censer burns incense, producing beautiful, visible output. This crate does the same for your logs—gorgeous, human-readable output with colors and structure.
Quick Start
use censer::{info, warn, error, debug};
// Simple logging
info!("Server started");
warn!("Low disk space");
error!("Connection failed");
// With key-value pairs
info!("Request received"; "method" => "GET", "path" => "/api/users");
// INFO Request received method=GET path=/api/users
Custom Logger
use censer::{Logger, Level};
let logger = Logger::new()
.with_timestamp()
.with_icons()
.min_level(Level::Info);
logger.info("Application started");
// 14:30:45 ℹ️ INFO Application started
Log Levels
| Level | Color | Icon |
|---|---|---|
| DEBUG | Gray | 🔍 |
| INFO | Blue | ℹ️ |
| WARN | Amber | ⚠️ |
| ERROR | Red | ❌ |
| FATAL | Dark Red | 💀 |
Installation
cargo add censer
Ecosystem
Part of the Molten Labs open source ecosystem:
| Crate | Description |
|---|---|
| molten_brand | Design tokens & colors |
| glyphs | ANSI escape sequences |
| lacquer | Terminal styling |
| tuyere | TUI framework |
| scoria | TUI components |
| chant | Shell glamour |
| aglow | Markdown renderer |
| censer | Pretty logging (you are here) |
License
MIT OR Apache-2.0
Built with 🔥 by Molten Labs
Dependencies
~1MB
~19K SLoC