3 ms·
> I could (and should) write my own implementations for things like logging and date formatting. One of my biggest pet peeves when working with Go, is the mult
by EdwardDiego 5y ago
> I could (and should) write my own implementations for things like logging and date formatting.
One of my biggest pet peeves when working with Go, is the multitude of logging libraries with disparate interfaces. That can't be configured easily (if at all) or at a desired level of granularity by the end user.
One of the things the Java community got right is SLF4J for a standard interface.
- ashtonkem 5y agoThe Java community is going further in this direction, with the norm being empty jars to provide interfaces for libraries, with the implementation being brought by the application. Micrometer, opentracing, and Jax work this way.
- oalae5niMiel7qu 5y agoI tried to install I-don't-remember-what Java app years ago. The logging didn't work at all. The docs went on and on about how it used this standard, pluggable logging interface and you can plug any logging implementation into it, but as for how to get it to actually log something somewhere (hopefully to syslog, but that's doubtful), nobody seemed interested in that. I rm -rf'd the app and never allowed anything written in Java into the project again.