I’d like to see the log become a tree, with sub-messages. It may be tricky to figure out the details when multiple threads/processes can output to the same log though.
Have you looked into structlog? If people are willing to reach beyond the stdlib, my read of it is that it meets most expressed desires here, although I admit it’s on my list to try in new projects and I haven’t started using it myself yet.
Yes, I had to add tree-output to structlog, and it wasn’t easy.
Fair enough. Out of curiosity, do you have a reference for what you mean in tree logging? The impression I got was increasingly specific contexts, but that seems not to be what you meant.
Yes, here’s the issue.