Skip to main content

Plainlog

PyPI - Version PyPI - Python Version Documentation


Installation

pip install plainlog

or add it to your project with

uv add plainlog
uv sync

Quickstart

from plainlog import logger

logger.info("hello world")
logger.warning("look out!")
logger.error("something broke")

Or use a profile for more structured output:

from plainlog import logger
from plainlog.configure import apply_log_profile

apply_log_profile("develop", level="DEBUG")
logger.info("ready to go")

Child Loggers

Create a child logger whose name is derived from the current module:

from plainlog import logger

log = logger.new(__name__)
log.info("logged with the module name as logger name")

Processors

Log output is built from a pipeline of processors — a formatter followed by a handler:

import sys
from plainlog import logger
from plainlog.processors import JsonFormatter, Stream

logger.configure(processors=[JsonFormatter(), Stream(sys.stdout)])
logger.info("hello world", user="alice")

See the Processors docs for the full list of built-in formatters, handlers, and filters (including redaction, level filtering, and buffering).

Idea

Main goal is to be a plain easy to use logging library. Simple, small, and fast.

If you are too lazy for long configuration settings simply use the provided log profiles. Advanced configuration can be done with environment variables or in the code.

No dependencies to other libraries. Pure Python working in different Python implementations.

Status

In development beta, internal interfaces can change.

Changelog

See CHANGELOG.md for the full list of changes, or the Changelog page in the docs.

License

plainlog is distributed under the terms of the BSD 3-Clause License.

Metadata

Release files for plainlog 0.6.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for plainlog 0.6.0
File Size Uploaded
plainlog-0.6.0.tar.gz 18.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for plainlog 0.6.0
File Interpreter ABI Platform
plainlog-0.6.0-py3-none-any.whl Python 3 none any Details

Total release size: 39.7 kB

Release files / plainlog-0.6.0.tar.gz

Download URL plainlog-0.6.0.tar.gz
Size 18.0 kB
Tags Source
SHA-256 checksum
How to use checksums
429652ce6308e19bf9739808c8ba7ed779fd117a8303f01b41258edfdd2eb106
BLAKE2b-256 checksum
How to use checksums
24905c904f5cfeb73b50968e8b1c63b64fd485255bb30e5eb38e1560265b2549
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 18, 2026.

Transparency log

Release files / plainlog-0.6.0-py3-none-any.whl

Download URL plainlog-0.6.0-py3-none-any.whl
Size 21.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d5112b2fecf2824da7dc72b41cbcd0fecfa3aa0b374311f5416d99833c044335
BLAKE2b-256 checksum
How to use checksums
d43075e9e1e024503c49b4138e7afa5f2b997dd8de0ee3e666e5225d41ee6cf0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 18, 2026.

Transparency log

Release history Release notifications | RSS feed

0.9.0

2 release files

0.8.0

2 release files

0.7.0

2 release files

This release

0.6.0 This release

2 release files

0.5.0

2 release files

0.4.0

2 release files

0.3.0

2 release files

0.2.0

2 release files

0.1.6

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page