Skip to main content

set_log_level

Function set_log_level 

Source
pub fn set_log_level(level: LogLevel)
Expand description

Sets the global log level for the plugin

§Arguments

  • level - The new log level to set

§Example

use serialplugin_core::state::{LogLevel, set_log_level};

set_log_level(LogLevel::Error);