I have two loggers, let's say they're named rpc and eval.
I want to handoff processing from the rpc to eval module, but my rpc logger has request info in its context, which I want to include when I make logging calls from the eval logger.
#238 is one solution, I could copy my rpc logger and also name it eval. Alternatively, if there was a way to extract the context from a logger I could either pass that around detached from the original logger, or write a function which adopted the context from a passed-in logger.
I have two loggers, let's say they're named
rpcandeval.I want to handoff processing from the
rpctoevalmodule, but myrpclogger has request info in its context, which I want to include when I make logging calls from theevallogger.#238 is one solution, I could copy my
rpclogger and also name iteval. Alternatively, if there was a way to extract the context from a logger I could either pass that around detached from the original logger, or write a function which adopted the context from a passed-in logger.