I like the idea of adding NDCs to Hatchet.
Most of the hard work could be contained within some middleware for Rack-based applications. Non-Rack applications would be responsible for calling context.clear
before/after doing all the work for a context so that it was clear before new work commenced.
I'm thinking the API of the logger (accessed via the log
and logger
mixin methods) would be extended to include:
# Public: Returns a handle to the current logging context which