sod-log

Crates.iosod-log
lib.rssod-log
version0.3.4
sourcesrc
created_at2023-04-20 18:30:37.339038
updated_at2024-06-26 13:50:49.398742
descriptionService Oriented Design - Log Integrations
homepage
repositoryhttps://github.com/thill/sod
max_upload_size
id844703
size11,994
Eric Thill (thill)

documentation

README

sod-log

sod::Service logging implementations via log.

Service Impls

  • 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.

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();
Commit count: 16

cargo fmt