Expand description
§ChrysalisRS
Transform your logs into beautiful, structured JSON for elegant display in web UIs.
ChrysalisRS provides a flexible, extensible logging framework that makes it easy to serialize logs into JSON format for modern web interfaces.
§Core Features
- 100% extensible architecture
- Full JSON serialization/deserialization
- Type-safe logging structures
- Integration with common logging frameworks
- Rich context and metadata support
§Example
use chrysalis_rs::{LogEntry, LogLevel};
let mut log = LogEntry::new("User authentication successful", LogLevel::Info);
log.add_context("user_id", "12345");
log.add_context("ip_address", "192.168.1.1");
// Serialize to JSON with one line
let json = log.to_json().unwrap();Re-exports§
pub use error::Error;
Modules§
Structs§
- Adapter
Options - Options for adapters
- Extension
Registry - Registry for managing extensions
- LogEntry
- Core log entry structure
- Meta
Data - Metadata for a log entry
- Pretty
Formatter - Pretty formatter with more options
- Simple
Formatter - Simple formatter that outputs JSON
- Standard
Adapter - Standard adapter for simple string logs
Enums§
- LogLevel
- Log levels supported by ChrysalisRS
Traits§
- Adapter
- Trait for adapting external logging systems to ChrysalisRS
- Extension
- Trait for extensions to ChrysalisRS
- Formatter
- Trait for formatting log entries
- Serializable
- Trait for types that can be serialized to JSON