Skip to main content

init

Function init 

Source
pub fn init(
    section: &LogSection,
    stdout_is_terminal: bool,
) -> Result<bool, String>
Expand description

Installs the global logger. Returns false if one was already installed (only the first call in a process takes effect).

ยงErrors

Returns a message if [log] level is invalid.