Expand description
sod::Service logging implementations via log.
Service Impls
LogDebugServicelogsDebuginput at a configured log level tolog::log, returning the input as output.LogDisplayServicelogsDisplayinput at a configured log level tolog::log, returning the input as output.
Use Case
These Service impls are most useful for logging an event as it passes through a service chain.
Example
use sod::Service;
use sod_log::LogDisplayService;
let logging_service = LogDisplayService::info("my event: ");
logging_service.process("hello world!").unwrap();Structs
- A
sod::Servicethat logsDebuginput at a configured log level tolog::log, returning the input as output. - A
sod::Servicethat logsDisplayinput at a configured log level tolog::log, returning the input as output. - A
sod::Servicethat logs optionalDebuginput when it isSome(input)at a configured log level tolog::log, returning the input as output. - A
sod::Servicethat logs optionalDisplayinput when it isSome(input)at a configured log level tolog::log, returning the input as output.