Hi! I’m happy to invite you to take a look at ppx_minidebug 1.3.0. It’s now available in the opam repository. Some new features since version 1.0:
- Extension point variants that support debug runtime passing, they simplify having e.g. dedicated log files for threads or domains.
- Unregistered extension points
%log
,%log_result
,%log_printbox
to explicitly log values. - Log levels at runtime to restrict how much is logged, and at compile time to restrict how much logging code is generated.
- Log levels can be both set globally and adjusted for local scopes.
- Compile time log levels can be read off an environment variable.
- Extension point prefix
%diagn_
(joining prefixes%debug_
and%track_
) that restricts the log level to explicit logs. - Does not crash for logs that escaped all log entries – prints the entry id of the entry the orphaned log lexically belongs to.
- Optionally prints log entry ids for all entries.
- Optionally snapshots unclosed log trees:
- outputs the current log tree if sufficient time passed since the previous tree was printed or the previous snapshot, erases the previous snapshot when snapshotting or printing the same log tree.
- A few more changes that improve usability.
P.S. If you face problems with missing line breaks in the HTML output, re-install printbox from source or version > 0.10.0.