lunatic-log 0.1.1

A logging library for lunatic Rust applications
1
2
3
4
5
6
7
8
9
10
11
pub mod fmt;
pub mod multiple;

use serde::{de::DeserializeOwned, Serialize};

use crate::{Event, Metadata};

pub trait Subscriber: Serialize + DeserializeOwned {
    fn enabled(&self, metadata: &Metadata) -> bool;
    fn event(&self, event: &Event);
}