make-log-receiver returns a synchronizable event; you start a thread
to loop and sync on that. Formatting and disposition is up to you.

1. Example from XREPL, displaying to stdout with `;` comment chars prepended:

  
https://github.com/racket/xrepl/blob/master/xrepl-lib/xrepl/xrepl.rkt#L1286-L1307

2. Example from racket-mode, writing to a TCP port...

  
https://github.com/greghendershott/racket-mode/blob/b977873e6128f8399432dcd60cc39f6a6f803d9c/racket/logger.rkt

...for the Emacs front-end to read from, and do things like color-code
the log levels, then display in a dedicated window:

  https://github.com/greghendershott/racket-mode/blob/master/racket-logger.el

3. I have also done a log-receiver that ships log events as JSON to
AWS CloudWatch Logs, for https://deals.extramaze.com but that code
isn't open source now.

Log receivers are fun.

Anyway you could certainly take 1, and omit the logger name and/or level.

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to