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

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

Or use a profile for more structured output:

from plainlog import configure_log, logger

configure_log(profile="develop", level="DEBUG")
log = logger.new()
log.info("ready to go")

Child Loggers

Create a child logger; its name is auto-detected from the current module:

from plainlog import logger

log = logger.new()
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 configure_log, logger
from plainlog.processors import JsonFormatter, Stream

configure_log(processors=[JsonFormatter(), Stream(sys.stdout)])
log = logger.new()
log.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.11.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.11.0
File Size Uploaded Provenance Actions
plainlog-0.11.0.tar.gz 128.6 kB With provenance Details for plainlog-0.11.0.tar.gz

Built distribution (wheel)

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

Total release size: 153.6 kB

Release files / plainlog-0.11.0.tar.gz

Download URL plainlog-0.11.0.tar.gz
Size 128.6 kB
Tags Source
SHA-256 checksum
How to use checksums
ea593303d221735a73f255a4b518e8d2893a15c91a37893741c0810ec1e34b9f
BLAKE2b-256 checksum
How to use checksums
744905398cb732e6c322e1cd9293e855f2792d528e72d237737b3804494ee419
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 7, 2026.

Transparency log

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

Download URL plainlog-0.11.0-py3-none-any.whl
Size 25.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0f949e1fb86dcc58d04d8cc9c9c04006b2663331b4b2b327654d70da58254163
BLAKE2b-256 checksum
How to use checksums
db17eed0b7d8cc10372b30e00cccc8a92b4e4ef5f9be78986d726c92de1e6384
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 7, 2026.

Transparency log

Security for plainlog 0.11.0

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for plainlog-0.11.0.tar.gz

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 Nov 7, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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