Crates.io | sod-log |
lib.rs | sod-log |
version | 0.3.4 |
source | src |
created_at | 2023-04-20 18:30:37.339038 |
updated_at | 2024-06-26 13:50:49.398742 |
description | Service Oriented Design - Log Integrations |
homepage | |
repository | https://github.com/thill/sod |
max_upload_size | |
id | 844703 |
size | 11,994 |
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.
use sod::Service;
use sod_log::LogDisplayService;
let logging_service = LogDisplayService::info("my event: ");
logging_service.process("hello world!").unwrap();