Commit Graph

10 Commits

Author SHA1 Message Date
Matthew Flatt
f2d870859a logging: allow name in `log-message', report it in a log-receiver evt
The synchronization result of a log receiver is now a vector of four
values, instead of three, where the last one reports the name.

Also, an optional argument to `make-logger' provides a notification
callback for each event sent to the logger.

These changes enable more control over loggers and events. Suppose
that you have processes A and B, and you want all log events of A
to be visible to B, but not vice-versa. Furthermore, you want the
log events to appear at B in the right order: if A logs an event
before B, then A's event should arrive at a log receiver's before
B's. Now that a log receiver gets the name associated with the
original event, and now that the name can be re-sent in a
`log-receiver', it's possible to give A and B separate loggers and
send all of the events from A's logger to B's logger. Furthermore,
you can use the notification callback so that when an event is logged
in B, you can make sure that all available events from from A's
logger have been transferred to B's logger.
2012-12-27 14:12:40 -06:00
Vincent St-Amour
5a24b57a95 Fix unstable/logging to work with the new logging system. 2012-09-11 13:48:14 -04:00
Ryan Culpepper
c7f86d276c removed useless requires 2011-09-27 19:28:44 -06:00
Vincent St-Amour
b068e4a53b Add a lower-level interface to unstable/logging. 2011-07-21 17:06:03 -04:00
Vincent St-Amour
b71d3cf40c Fix limitations of with-intercepted-logging. 2011-06-01 16:11:10 -04:00
Vincent St-Amour
b86d759b62 Provide with-intercepted-logging. 2011-06-01 16:11:10 -04:00
Vincent St-Amour
fc705c6e29 Implement with-logging-to-port in terms of something more general. 2011-06-01 16:11:10 -04:00
Vincent St-Amour
0538f21274 Make level a keyword argument for with-logging-to-port. 2011-06-01 15:24:15 -04:00
Vincent St-Amour
fe161a780c List known limitations of with-logging-to-port. 2011-06-01 15:20:36 -04:00
Vincent St-Amour
8d96133681 Add with-logging-to-port to unstable. 2011-05-31 19:14:38 -04:00