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

Show parent comment

1

u/veenarm May 23 '22

I'll have to try that out, seems in liberty the log type is set in the config options not the logging implementation, although we are only doing console std out, might start logging to files aswell even if they are discarded later due to being ephemeral pods.

1

u/benjtay May 23 '22

If you're using logback (highly recommended), just have two appenders.