Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Version Checking

Automatic update notifications for new releases.

Overview

Logly can automatically check for new versions on crates.io and notify you of updates.

Enabled by Default

Version checking is enabled by default with the auto-update-check feature.

Check for Updates

#![allow(unused)]
fn main() {
use logly::prelude::*;

let logger = Logger::new();

if let Ok(Some(msg)) = logger.check_version() {
    println!("{}", msg);
}
}

Disable Version Checking

At Compile Time

[dependencies]
logly = { version = "0.0.4", default-features = false, features = ["async", "rotation", "json", "colors"] }

At Runtime

#![allow(unused)]
fn main() {
let mut config = LoggerConfig::default();
config.enable_version_check = false;
logger.configure(config);
}

Example Output

New version available: 0.0.5
Current version: 0.0.4
Update with: cargo update logly

See Also