[][src]Function loge::try_init_custom_env

pub fn try_init_custom_env(
    environment_variable_log: &str,
    environment_variable_format: &str
) -> Result<(), SetLoggerError>

Initialized the global logger with a logger named loge, with a custom custom variable name.

This should be called early in the execution of a Rust program, and the global logger may only be initialized once. Future initialization attempts will return an error.

Errors

This function fails to set the global logger if one has already been set.