4

I would like to use graylog as central logging server and currently I am just using slf4j Logger "slf4j-api" as Java logging framework for logging in my java application. Can i use SLF4J to send logging to Graylog? or Which additional libraries do i need to send these logs to Graylog?

orcl user
  • 107
  • 2
  • 8

1 Answers1

3

SLF4J is just a facade for other logging libraries.

You have to use a GELF appender for the specific logging framework (Log4j, Logback, java.util.logging, etc.) you're using in your application.

Check out the Graylog Marketplace for existing GELF appenders for Java logging frameworks:

https://marketplace.graylog.org/addons?tag=java

joschi
  • 11,459
  • 4
  • 40
  • 47