pub fn install(config: LoggerConfig) -> Result<(), InstallError>Expand description
Installs the SDK logger as the global log implementation.
Called by the enable_logger! and enable_logger_with! macros;
rarely invoked directly. Prefer the macros — they capture the caller’s
CARGO_PKG_NAME for the default prefix and filename.
§Errors
InstallError::AlreadyInstalledif a logger (this one or any other) was already registered with thelogcrate in this process.InstallError::Ioif the log directory or file could not be opened.