22 releases

new 0.1.23 May 3, 2025
0.1.22 Apr 18, 2025
0.1.21 Jan 6, 2025
0.1.17 Dec 31, 2024

#224 in Debugging

Download history 25/week @ 2025-01-08 9/week @ 2025-01-15 1/week @ 2025-01-29 12/week @ 2025-02-05 75/week @ 2025-02-12 33/week @ 2025-02-19 6/week @ 2025-02-26 7/week @ 2025-03-26 178/week @ 2025-04-16 26/week @ 2025-04-23

205 downloads per month
Used in 7 crates (6 directly)

GPL-3.0-or-later

7KB
126 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

~6–29MB
~418K SLoC