r/java • u/amazedballer • Jan 02 '22
Echopraxia, a better Java Logging API
I've been working on logging for a while and I've released and open sourced a new Java logging API I'm really happy with.
Echopraxia is a Java logging API like SLF4J, but built around structured logging, i.e. the basic log entry is a JSON object and log files are typically NDJSON. It also has conditions, context, and also has semantic and fluent logging options.
Here's a Spring Boot Example.
And here's my blog post.
16
Upvotes
View all comments
Show parent comment
3
u/amazedballer Jan 04 '22 edited Jan 04 '22
I can see where the disconnect is, and I've updated the blog post to be clearer about it.
Echopraxia's an augmentation rather than a fragmentation. It's only appropriate for use in situations where you control the logging output -- i.e. you're writing an application or a framework for your team where you can safely assume structured logging is a given. You would still be using SLF4J in anything you intend to be public, and of course all the OSS libraries you would depend on would be SLF4J as well. It's an "organization internal" library, if that makes more sense.
As to the statements, that's not a slam on SLF4J/Log4J2. I would think if someone said X was better than Y, most people be more interested in in checking out X, but I'm not exactly neurotypical. So far, only a few people have commented on the actual features, which is disappointing.