Function pyo3_log::try_init

source ยท
pub fn try_init() -> Result<ResetHandle, SetLoggerError>
Expand description

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.