DocumentationDiscussions
DocumentationDiscussions

Logging Libraries

Many popular logging libraries have Seq extensions available; these extensions help you to easily configure your application to log events to Seq.

Here are our recommended Seq logging setups based on popular logging APIs, split into frameworks and programming languages.

👍

Many of the libraries below exist thanks to the open-source software community ❤️

.NET

If you use Serilog logger, install Serilog.Sinks.Seq library to log to Seq.

If you use Microsoft.Extensions.Logging with ASP.NET Core, you can add the Seq.Extensions.Logging provider to send events to Seq.

Projects with NLog can install the target package NLog.Targets.Seq.

Applications using Apache log4Net can import the Seq.Client.Log4Net appender.

Node.js

If you are using pino for logging, you can import pino-seq.

If you are using winston for logging, you can import winston-seq.

For bunyan users, install bunyan-seq. Note: the bunyan project has been inactive since 2017.

Java

For Java applications using popular logging frameworks, there is currently no Seq appender library.

Instead, you can use the logstash-gelf library to send GELF logs to Seq. Note: you must install the GELF Seq Input App in order for Seq to ingest GELF logs.

The serilogj logging library is modelled off the .NET Serilog library, you can add the Seq plugin library serilog.sinks.seq.

Python

Applications using the Python logging API can log to Seq using the seqlog library.

You can also send logs to Seq from Python applications using GELF format. Note: you must install the GELF Seq Input App in order for Seq to ingest GELF logs.

Ruby

Ruby projects can use the semlogr library with Seq appender semlogr-sinks-seq.

If you are already using popular Ruby logging libraries such as:

  • logging
  • log4r
  • semantic_logger or rails_semantic_logger

You can log to Seq by importing a GELF (or "Graylog") gem. Note: you must install the GELF Seq Input App in order for Seq to ingest GELF logs.

Go

We recommend logging to Seq using logrus and the logruseq hook.

Alternatively, logs can be sent to Seq in GELF format using the log package with go-gelf hook. Note: you must install the GELF Seq Input App in order for Seq to ingest GELF logs.


Did this page help you?