lxy 0.1.1

A convenient async http and RPC framework in Rust
Documentation
use tracing::subscriber::DefaultGuard;

pub(crate) struct BootstrapperSubscriber {
  /// The guard to keep the bootstrap subscriber active.
  #[allow(dead_code)]
  guard: DefaultGuard,
}

impl BootstrapperSubscriber {
  pub fn new() -> Self {
    let guard = tracing::subscriber::set_default(
      tracing_subscriber::fmt::fmt()
        .with_writer(std::io::stdout)
        .with_max_level(tracing::Level::INFO)
        .finish(),
    );

    Self { guard }
  }
}