Documentation
DocumentationDiscussions
These docs are for v2020.1. Click to read the latest docs for v2024.2.

Java

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

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.

HTTP/JSON

Java applications can alternatively use the HTTP API to post events as JSON documents.