sod::Service
logging implementations via log
.
LogDebugService
logsDebug
input at a configured log level tolog::log
, returning the input as output.LogDisplayService
logsDisplay
input at a configured log level tolog::log
, returning the input as output.
These Service
impls are most useful for logging an event as it passes through a service chain.
use sod::Service;
use sod_log::LogDisplayService;
let logging_service = LogDisplayService::info("my event: ");
logging_service.process("hello world!").unwrap();