Fixes #215. Alternative to #216.
This is is implemented roughly as suggested here:
- Adds log levels.
- Adds an additional “Raise” log level.
- Uses the ‘Trace’ level by default, so existing behavior is unchanged.
- Remains backwards-compatible via a new (deprecated) EventLoop constructor.
Users should not observe any behavioral difference. However, they can now change the log level (using the EventLoop constructor which takes a LogOptions) to set a lower level.
Once merged, Core should take advantage of the new functionality:
- Update the callback function signature.
- Set the requested log level.
- Map mp log levels to Core ones inside the callback.