Skip to content

fbrandes/slf4j-gelf

Repository files navigation

slf4j-gelf

Build Status

slf4j-gelf provides the capability of creating GELF-formatted log messages via SLF4J.

Getting Started

slf4j-gelf requires Java 11.

Installation

Maven:

<dependency>
  <groupId>com.github.fbrandes</groupId>
  <artifactId>slf4j-gelf</artifactId>
  <version>0.0.1</version>
</dependency>

Gradle:

dependencies {
  implementation("com.github.fbrandes:slf4j-gelf:0.0.1")
}

Usage

With slf4j-gelf loggers can be created similar to SLF4J but instead of LoggerFactory there is GelfLoggerFactory.

private static final Logger LOGGER = new GelfLoggerFactory().getLogger(Log4jTest.class);
LOGGER.info("foo");

About

GELF-formatted logging via SLF4J logging facade

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages