3 unstable releases

0.1.0 Oct 17, 2024
0.0.1 Jul 10, 2024
0.0.0 Jun 19, 2024

#375 in Video

Download history 10/week @ 2024-09-21 2/week @ 2024-09-28 148/week @ 2024-10-12 30/week @ 2024-10-19 1/week @ 2024-10-26 21/week @ 2024-11-02 1/week @ 2024-11-09 55/week @ 2024-11-16 29/week @ 2024-11-23 11/week @ 2024-11-30 23/week @ 2024-12-07 12/week @ 2024-12-14

87 downloads per month

MIT license

4KB

Logging utilities for ACAP applications

Example

The logger is initialized as early as possible:

use log::{error, warn};

fn main() {
    # std::env::set_var("RUST_LOG_STYLE", "always");
    error!("This will never be shown");
    acap_logging::init_logger();
    error!("This will usually be shown");
}

Pitfalls

  • Messages logged at the trace level will not be shown in the system logs on target.
  • Messages logged at the warn level or less severe will not be shown in terminals by default.
  • When the tracing crate is used in place of the log crate, its log feature must be enabled.

Dependencies

~1.2–7.5MB
~58K SLoC