v0.1.2
Breaking
- Removed the
setLevel
method鈥攁ll events will now log irrespective of their level.- this is a simple fix if you still need this, use the new
onEmit
callback to squash these.
- this is a simple fix if you still need this, use the new
- Removed
before
/after
. As it turns out, with the newonEmit
api on diary. One can create the same effect鈥攚ith much less overhead.
Features
- Added new
enable
method to control the allow list programmatically. - Added new
onEmit
argument to thediary
constructor. Allows you to output the log entries to other places, thanconsole.log
. - Following on from that; added a new
diary/json
sub-module that allows formatting the messages as json!
Chores
- Upgraded packages
- Builds using esbuild
- Updated benchmarks