#logging-tracing #ferrite #logging

ferrite-logging

Logging infrastructure for Ferrite image viewer

24 releases

0.1.25 Jul 21, 2025
0.1.24 May 17, 2025
0.1.22 Apr 18, 2025
0.1.21 Jan 6, 2025
0.1.17 Dec 31, 2024

#732 in Debugging

Download history 4/week @ 2025-12-21 2/week @ 2025-12-28 2/week @ 2026-01-18 1/week @ 2026-01-25 1/week @ 2026-02-01 1/week @ 2026-02-08 3/week @ 2026-02-15 4/week @ 2026-02-22

1,526 downloads per month
Used in 6 crates (5 directly)

GPL-3.0-or-later

10KB
196 lines

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();

Dependencies

~11–23MB
~226K SLoC