jackfirth / racket-disposable

An experimental Racket library providing an abstraction for values associated with external resources that allows automatic resource pooling, per-thread virtual construction, and monadic composition
Apache License 2.0
7 stars 0 forks source link

Disposable logging #82

Open jackfirth opened 7 years ago

jackfirth commented 7 years ago

It should be easy to wrap a disposable in a disposable that logs allocation and deallocation events to a provided logger.

jackfirth commented 7 years ago

Useful info that logs should include:

Also, clients should somehow be able to specify how the text of these messages are formatted without affecting the structured data component of the logs.

jackfirth commented 7 years ago

It might be reasonable to add debug level logging to all disposables by default. Will keep that in mind when using disposables in a server environment.