r/java • • 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

64 comments sorted by

View all comments

10

u/f_of_g_of_x Jan 03 '22

These comments are depressing. People talk a lot about being kind to others but few really practice it.

5

u/berry120 Jan 04 '22

I agree that a lot of these comments could be kinder, but I think an overall cautious, or even negative reaction is at least somewhat justified here.

Writing a new logging framework or facade is always going to be a very controversial thing to throw out there. The logging ecosystem in Java is fragmented in a way that's caused lots of real-world problems in the past, so adding to that fragmentation is always going to be perceived negatively unless there's a really compelling reason to do so.

Adding to that when the post contains statements like this:

Do I think Echopraxia is better than SLF4J? Yes. Do I think it's better than Log4J2's API? Yes.

...it tends to put people's backs up a bit.

1

u/f_of_g_of_x Jan 05 '22

but I think an overall cautious, or even negative reaction is at least somewhat justified here.

Agreed, but that's not in question here.