Documentation
DocumentationDiscussions
Documentation

Logging from Java

Java/JVM applications can log to Seq through GELF, serilogj, or via HTTP and JSON.

log4j, log4j2, java.util.logging, logback via GELF

Seq supports GELF. This must be enabled using the instructions in Using GELF. See your preferred logging library's instructions for sending GELF events.

serilogj

The serilogj project implements support for Java and other JVM language clients.

Log.setLogger(new LoggerConfiguration()
    .writeTo(seq("http://localhost:5341"))
    .createLogger());

Log.information("Hello from {lang}!", "Java");

This project is independently developed on GitHub.

OpenTelemetry Java SDK

The OpenTelemetry Java SDK can send logs and traces to Seq. See Ingestion with OpenTelemetry and Tracing from OpenTelemetry for more information.