Function try_init

Source
pub fn try_init(app_name: &str, app_version: &str) -> Result<()>
Expand description

Configure the application log according to env variable.

If an io error occurs, it is returned, and all logging is disabled (but there won’t be any panic or error on log calls).

The caller can decide to print the error and not, to continue or not.