3 ms·
I would think using an async logging framework is a cleaner and faster approach i.e. something like log4j or glog that does IO in a separate thread. I suppose
by mbell 13y ago
I would think using an async logging framework is a cleaner and faster approach i.e. something like log4j or glog that does IO in a separate thread.
I suppose such an approach is less ideal when using a language that isn't truly concurrent or if the code doesn't run long enough for it to be efficient to spawn a logging thread.
- geocar 13y agoOr just use stdout in those circumstances? Sysadmins are happy to pipe into grep and logger if they need to. We might prefer it if it is that shortlived