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

Using Python

Python applications can log to Seq through the Python logging API or via HTTP and JSON.

seqlog

The seqlog package implements a Python logging adapter for Seq:

# Indexer-style
logging.info("Hello, %s!", "World")

# Message template style
logging.info("Hello, {name}!", name="World")

The detailed project documentation includes full configuration and usage examples.

The project is independently developed on GitHub.

HTTP/JSON

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