#lunatic #log #logging #logger


A logging library for lunatic Rust applications

6 releases

Uses new Rust 2021

0.2.3 Aug 9, 2022
0.2.2 Aug 9, 2022
0.1.1 Aug 8, 2022

#231 in Debugging

Download history 111/week @ 2022-08-04 32/week @ 2022-08-11 7/week @ 2022-08-18 24/week @ 2022-08-25 29/week @ 2022-09-01 29/week @ 2022-09-08 8/week @ 2022-09-15 40/week @ 2022-09-22

106 downloads per month
Used in submillisecond


631 lines

A logging library for lunatic Rust applications.

Why a new logging library?

Current logging solutions in Rust (log, tracing, ...) depend on global static variables that are initialized at the start of the app. This doesn't work in lunatic, where each process gets their own memory space. You would need to re-initialize the logger for each process, and that is not practical.

lunatic-log allows you to run a log subscriber process that collects logging messages from all running processes.

How to use lunatic-log?

Add it as a dependency:

lunatic-log = "0.2"

In your code:

use lunatic_log::{info, subscriber::fmt::FmtSubscriber, LevelFilter};

fn main() {
    // Initialize subscriber

    // Log message
    info!("Hello, {}", "World");

    // Wait for events to propagate and display before exiting app


Licensed under either of

at your option.


~47K SLoC