puerto 0.8.0

Puerto — Rust full-stack DDD framework CLI. Scaffolds Clean Architecture projects with auto-wired DI, SQLx support, and zero manual wiring. Formerly puerto-framework.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use business::domain::logger::LoggerTrait;

pub struct TracingLogger;

impl LoggerTrait for TracingLogger {
    fn info(&self, message: &str) {
        tracing::info!("{}", message);
    }
    fn warn(&self, message: &str) {
        tracing::warn!("{}", message);
    }
    fn error(&self, message: &str) {
        tracing::error!("{}", message);
    }
    fn debug(&self, message: &str) {
        tracing::debug!("{}", message);
    }
}