use tracing_core::Subscriber; use tracing_subscriber::{layer::Layer, registry::LookupSpan}; pub struct OsLogger; impl OsLogger { pub fn new(_subsystem: S, _category: C) -> Self where S: AsRef, C: AsRef, { eprintln!("Initializing OsLogger on non-Apple platform! Nothing will be logged by it!"); Self } } impl Layer for OsLogger where S: Subscriber + for<'a> LookupSpan<'a> {}