pub mod config;
pub mod grpc;
pub mod server_build;
pub use crate::server_build::LoggingService;
pub use config::{load_config, setup_logging, LogConfig};
pub use grpc::GrpcLayer;
pub async fn init(config_path: &str) -> Result<LoggingService, Box<dyn std::error::Error + Send + Sync>> {
let config = load_config(config_path)?;
let service = LoggingService::new();
service.init(&config).await?;
Ok(service)
}