gouge
Formatters for the Python logging module. gouge gives console output a uniform, coloured layout that is easy to scan, and writes the same records as JSON Lines, CSV or XML for machines. It works with the standard library alone: no wrapper API, no new logger class.
Documentation: https://exhuma.github.io/gouge/
Installation
gouge needs Python 3.11 or newer:
pip install gouge
Example
>>> import logging
>>> from gouge.colourcli import Simple
>>> handlers = Simple.basicConfig(
... level=logging.INFO
... )
>>> log = logging.getLogger("app")
>>> log.info("Server started")
2026-10-27 13:34:48,899 INFO [app] Server started
>>> log.warning("Disk 91% full")
2026-10-27 13:34:48,899 WARNING [app] Disk 91% full
On a terminal, the time, level and logger name are coloured.
The documentation covers console output, configuration files, extra attributes and correlation IDs, JSON output, uvicorn and colour control. The changelog lists the changes in every release.
Project status
gouge is actively maintained and stable (Production/Stable). It follows Semantic Versioning; the compatibility policy defines what counts as a breaking change and how deprecation works.
Metadata
Release files for gouge 2.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| gouge-2.3.0.tar.gz | 154.1 kB | With provenance | Details for gouge-2.3.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| gouge-2.3.0-py3-none-any.whl | Python 3 | none | any | Details for gouge-2.3.0-py3-none-any.whl |
Total release size: 172.9 kB
Release files / gouge-2.3.0.tar.gz
| Download URL | gouge-2.3.0.tar.gz |
|---|---|
| Size | 154.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
df5dd6e84fa2396a398cb1dd40129f7bd41fe7fcf6ddc476ca40c92752b2040f
|
|
BLAKE2b-256 checksum How to use checksums |
fcb4018fe6f6307b2c47e9fdf851dfab9c9c83634972eb0020ce1765fc6e74a0
|
| 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 Oct 27, 2026.
Transparency logRelease files / gouge-2.3.0-py3-none-any.whl
| Download URL | gouge-2.3.0-py3-none-any.whl |
|---|---|
| Size | 18.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4bea7623e683e95e7089ad05b00d7b33e91b063d8c20d01f68ebca26392936c3
|
|
BLAKE2b-256 checksum How to use checksums |
e376304300a5aa1d50e83db265f614d6f474a1f2583017d647c43af701435de4
|
| 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 Oct 27, 2026.
Transparency logSecurity for gouge 2.3.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.
Attestation for gouge-2.3.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 Oct 27, 2026.
Transparency logA 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.