ferrite-logging

Crates.ioferrite-logging
lib.rsferrite-logging
version0.1.25
created_at2024-12-15 16:19:39.937205+00
updated_at2025-07-21 14:47:14.493102+00
descriptionLogging infrastructure for Ferrite image viewer
homepage
repositoryhttps://github.com/master-of-zen/ferrite
max_upload_size
id1484267
size31,334
Zen (master-of-zen)

documentation

https://docs.rs/ferrite-logging

README

Ferrite Logging

Logging infrastructure for the Ferrite image viewer.

Features

  • Log level configuration through environment variables and CLI
  • Tracy profiler integration for performance monitoring
  • Simple initialization API
  • Type-safe log level handling

Usage

use ferrite_logging::{LogConfig, LogLevel, init};

// Basic setup with default config
let config = LogConfig::default();
init(config);

// Custom setup with Tracy enabled
let config = LogConfig {
    level: LogLevel::Debug,
    enable_tracy: true,
};
init(config);

// Get log level from RUST_LOG environment variable
let level = ferrite_logging::get_log_level_from_env();
Commit count: 175

cargo fmt