[sod::Service
] logging implementations via log
.
LogDebugService
] logs [Debug
] input at a configured log level to [log::log
], returning the input as output.LogDisplayService
] logs [Display
] input at a configured log level to [log::log
], returning the input as output.These [Service
] impls are most useful for logging an event as it passes through a service chain.
```rust use sod::Service; use sod_log::LogDisplayService;
let loggingservice = LogDisplayService::info("my event: "); loggingservice.process("hello world!").unwrap(); ```