Module logging

Module logging 

Source
Available on crate feature logging only.
Expand description

An optional logging module for the packxel-utils crate. This should be called after the initializer is initialized. Logging module for Packxel

§Default Logger

use packxel_utils::initializer::Initializer;
let initializer = Initializer::init("package-name", "0.0.1");
PackxelLogger::init(initializer);
// Run with RUST_LOG=debug cargo run

§With Builder

use packxel_utils::initializer::Initializer;
use packxel_utils::logging::PackxelLoggerBuilder;

let initializer = Initializer::init("package-name", "0.0.1");
let builder = PackxelLoggerBuilder::new(initializer)
    .with_default_log_level()
    .with_file_writer(false);
    .build()

Structs§

PackxelLogger
Base logger for Packxel
PackxelLoggerBuilder
Builder mechanism for PackxelLogger