On this page:
start-logger

15 Logging

 (require koyo/logging) package: koyo-lib

This module provides utilities for displaying log messages.

procedure

(start-logger #:levels levels    
  [#:parent parent    
  #:output-port out])  (-> void?)
  levels : (listof (cons/c symbol? log-level/c))
  parent : logger? = (current-logger)
  out : port? = (current-error-port)
Starts a background logger that will receive logs based on levels and print them to out.

levels is a list of topic and level pairs.

The return value is a function that will stop the background thread when called. Calling the stopper function after the thread has been stopped has no effect.