[−][src]Function loge::try_init
pub fn try_init() -> Result<(), SetLoggerError>
Initializes the global logger with a logger named loge
.
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.