News for hackers. Stuff that matters.
Re:Third High Severity CVE in Log4j Is Published by dragonwriter on Saturday December 18, 2021 @02:13PM (#29607563)
> What is so complicated about logging that you can't implement the necessary functionality in your own codebase, and instead have to adopt a third-party library?

(1) Coordinating with dependencies requires at a minimum a common API (which, in a statically typed language, means a library providing at least the interface).

(2) Configurability to log to different destinations and with different formats, which you eventually tend to want on major or long-lived projects, can be fiddly, as can the specifics of different formats and targets. Each of the bits is simple, but added up it's a lot over time, and reinventing the wheel, the axle, the tire, and the air pump for it just doesn't make a lot of sense. Especially given the need for a library for #1, it's best to get the core functionality together with it, and the peripheral pieces either together or as plugins, and only solving unique problems, if you have them.

There are no comments on this comment yet.