#logging #call #event-logging

call_logger

A logger that calls another application for every logged item

19 releases (2 stable)

1.0.1 Jan 7, 2026
1.0.0 Dec 10, 2025
0.6.7 Nov 28, 2025
0.6.0 Jan 10, 2025
0.0.5 Mar 13, 2023

#415 in Debugging

Download history 21/week @ 2025-10-09 26/week @ 2025-10-16 18/week @ 2025-10-23 38/week @ 2025-11-27 45/week @ 2025-12-04 44/week @ 2025-12-11 76/week @ 2026-01-01 155/week @ 2026-01-08

231 downloads per month
Used in r53-ddns

Apache-2.0

40KB
755 lines

call_logger

Crates.io Crates.io Build Status docs.rs dependency status

A logger that calls another application, script or URL for every logged item, passing a formatted string that contains the details of the log event.

Usage

Use of the builder model to set up the logger to call a script called store_log:

use call_logger::CallLogger;
use log::LevelFilter;

fn main() {
    let _ = CallLogger::new()
        .with_level(LevelFilter::Info)
        .with_call_target("store_log".to_string())
        .with_local_timestamp()
        .init();
    log::info!("Hello logging world")
}

Features

  • timestamps - add a timestamp to the output

Contribute

This is just a general purpose logger that calls out to another process. If you have any ideas for missing features, please raise an issue or a PR.

Dependencies

~9–20MB
~314K SLoC