caesura 0.31.0

An all-in-one command line tool to transcode FLAC audio files and upload to gazelle based indexers/trackers
Documentation
//! Shared logger configuration.

use crate::prelude::*;
use rogue_logging::{InitLog, LoggerBuilder};

/// Create a [`LoggerBuilder`] with standard exclude filters applied.
#[must_use]
pub fn default_logger() -> LoggerBuilder {
    LoggerBuilder::new()
        .with_exclude_filter("cookie".to_owned())
        .with_exclude_filter("lofty".to_owned())
        .with_exclude_filter("reqwest".to_owned())
        .with_exclude_filter("rustls_platform_verifier".to_owned())
        .with_verbosity(Verbosity::Trace)
}

/// Initialize a logger with standard filters and [`Verbosity::Trace`] verbosity.
pub fn init_logger() {
    default_logger().create().init();
}