chickadee » log5scm » structured-sender

structured-sender functionprocedure

This sender is used in structurend logging. Structured logging means that objects are than mere strings are logged. This sender accepts a function of one argument (the logged data). The function is invoked whenever the category spec of the sender matches. Be careful to only use this sender with structured output.

   (define-category struct)
   ;;structured logging
   (start-sender struct-sender (structured-sender (lambda (data) (print data))) (output (<structured)) (category struct))