use std::sync::Arc;
use trait_kit::prelude::*;
pub struct LoggerModule;
impl ModuleMeta for LoggerModule {
const NAME: &'static str = "inklog_logger";
fn dependencies() -> &'static [(&'static str, std::any::TypeId)] {
&[]
}
}
impl AutoBuilder for LoggerModule {
type Capability = Arc<inklog::LoggerManager>;
type Error = TraitKitError;
fn build(kit: &Kit) -> Result<Self::Capability, Self::Error> {
kit.config::<Self::Capability>()
}
}
#[cfg(test)]
mod tests {
use super::*;
#[test]
fn test_logger_module_compiles() {
let _ = LoggerModule;
}
}