3 ms·
I don't think that's particularly useful though. A program with requirements like that seems more likely to be split up into two independent pieces.
by vsareto 5y ago
I don't think that's particularly useful though. A program with requirements like that seems more likely to be split up into two independent pieces.
- Jweb_Guru 5y agoBut that's not at all the case in practice. Logging is intertwined with other program functionality.
- samus 5y agoMost logging libraries are facades over a concrete implementation. And there exist adapters for those that aren't. One could easily provide one that pipes the log stream to a child process that drops privileges and is restricted down by the OS. This will probably entail a performance penalty, but it could be worth it. It would be nice to have such a capability in-process though.