[][src]Function mycelium_core::setup_logging

pub fn setup_logging(verbosity: Option<usize>)

Logging with crates log and fern

Call this once before you setup an instance of stew. If setting up multiple instances calling this again will cause a panic.

  • Parameters:
    • verbosity: 1 low, 2 med, 3 high. Default 3.
use crate::mycelium_core::prelude::*;

// most verbose
setup_logging(1);