Skip to main content

init_logging

Function init_logging 

Source
pub fn init_logging(
    flag: Option<LevelFilter>,
    default: LevelFilter,
) -> Result<(), TryInitError>
Expand description

Initialises logging on stderr; stdout is reserved for the binaries’ protocols. Colour codes go only to a terminal, so collected pod logs stay plain text.