Skip to main content

Crate build_log

Crate build_log 

Source
Expand description

§build_log

Colored logging macros for Cargo build scripts.

§Example

use build_log as log;

fn main() {
    log::info!("starting build step");
    log::warning!("using fallback configuration");
}

If DBG_PRINT=1 is present in the environment, the macros emit cargo:warning= lines so the messages stay visible in Cargo build output.

Modules§

build_log_impl

Macros§

debug
error
fatal
info
warning