[Solved] using Logback with slf4j [closed]


It’s not entirely clear what you’re asking. SLF4J is a logging API. Log4j and Logback are implementations of that API (Log4j is also a standalone logging framework, of course). Graylog is a log aggregator.

If you want to use SLF4J to send logging to Graylog, you will need an implementation that can somehow send log messages over syslog in Graylog’s GELF format. I don’t know of any implementation which does that natively, but there are extensions for both Logback and Log4j to do this:

solved using Logback with slf4j [closed]