[][src]Function pyo3_log::try_init

pub fn try_init() -> Result<ResetHandle, SetLoggerError>

Installs a default instance of the logger.

In case a logger is already installed, an error is returned. On success, a handle to reset the internal caches is returned.

The default logger has a filter set to Debug and caching enabled to LoggersAndLevels.