DocumentationDiscussions
DocumentationDiscussions
Hey! These docs are for version 4, which is no longer officially supported. Click here for the latest version, 2023.4!

Using Java

Java/JVM applications can log to Seq through one of two options.

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.