Skip to main content

Crate chrysalis_rs

Crate chrysalis_rs 

Source
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§

error

Structs§

AdapterOptions
Options for adapters
ExtensionRegistry
Registry for managing extensions
LogEntry
Core log entry structure
MetaData
Metadata for a log entry
PrettyFormatter
Pretty formatter with more options
SimpleFormatter
Simple formatter that outputs JSON
StandardAdapter
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