by superbatfish · 4y ago · 0 comments
If your code links against C/C++ extensions that have internal printf calls, then you need something lower-level, which can intercept the data at the file handle.
There's a great solution for that on StackOverflow: https://stackoverflow.com/a/22434262/162094
I looked into this because I love structured logging, and I wasn't able to figure out how to make that work easily with the default logging module.