Beautiful, structured logging for the terminal.
A censer burns incense, producing beautiful, visible output. This crate does the same for your logs—gorgeous, human-readable output with colors and structure.
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/usersuse 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| Level | Color | Icon |
|---|---|---|
| DEBUG | Gray | 🔍 |
| INFO | Blue | ℹ️ |
| WARN | Amber | |
| ERROR | Red | ❌ |
| FATAL | Dark Red | 💀 |
cargo add censerPart 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) |
MIT OR Apache-2.0
Built with 🔥 by Molten Labs