SeqLog

raw JSON →
0.4.3 verified Fri May 01 auth: no python

SeqLog is a lightweight logging library that sends Python log messages to Seq, a structured log server. Current version 0.4.3, released July 2025. The library is actively maintained but sees infrequent releases.

pip install seqlog
error ModuleNotFoundError: No module named 'seqlog'
cause The package is not installed in the current Python environment.
fix
Run pip install seqlog
error AttributeError: module 'seqlog' has no attribute 'log_to_seq'
cause Using an outdated version (<0.3.0) that didn't have `log_to_seq`. The old function was `setup`.
fix
Upgrade to latest version: pip install --upgrade seqlog or use seqlog.setup instead.
breaking SeqLog v0.4.0 changed the default log level from DEBUG to INFO. If your code relies on DEBUG being the default, set level explicitly.
fix Explicitly pass `level=logging.DEBUG` to `log_to_seq()`.
gotcha Do not import `seqlog` after configuring logging manually (e.g., `logging.basicConfig`). SeqLog reconfigures the root logger and may conflict.
fix Import and configure `seqlog` before any other logging configuration.
deprecated The function `seqlog.setup` is deprecated since v0.3.0 and will be removed. Use `seqlog.log_to_seq` instead.
fix Replace `seqlog.setup(...)` with `seqlog.log_to_seq(...)`.

Basic setup sending logs to a Seq server. Uses environment variables for configuration.

import logging
import seqlog

# Configure SeqLog: either via environment variables or parameters
seqlog.log_to_seq(
    server_url=os.environ.get('SEQ_SERVER_URL', 'http://localhost:5341'),
    api_key=os.environ.get('SEQ_API_KEY', ''),
    level=logging.INFO
)

logger = logging.getLogger(__name__)
logger.info('Hello from SeqLog!')