Skip to content

Latest commit

 

History

History

sod-log

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

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();