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 ;
// Simple logging
info!;
warn!;
error!;
// With key-value pairs
info!;
// INFO Request received method=GET path=/api/users
Custom Logger
use ;
let logger = new
.with_timestamp
.with_icons
.min_level;
logger.info;
// 14:30:45 ℹ️ INFO Application started
Log Levels
| Level | Color | Icon |
|---|---|---|
| DEBUG | Gray | 🔍 |
| INFO | Blue | ℹ️ |
| WARN | Amber | ⚠️ |
| ERROR | Red | ❌ |
| FATAL | Dark Red | 💀 |
Installation
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