by oasisbob · 4y ago · 0 comments
Playing application log janitor is miserable. Just ship the logs and be done with it.
I agree that log configuration is a pain in the butt and oftentimes messy (especially when some third party lib includes a line to basically wipe your global config and everything gets wonky), but it's not like the heavy value adds are easy and bug-free to write!
So, don't. Ship the logs as quickly and as simply to a system which is explicitly for log management.
The choice isn't between writing huge logging libraries or using log4j, it's whether you want an application to handle its own flat-file logging and rotation in the first place.
Java has always been obnoxiously complex to steer towards sane, basic, modern syslog, which I think is a shame.