尚未偵測到更新。GitHub 發布版本後會顯示在這裡。
個人 GitHub 帳號下公開儲存庫的擁有者可以登入並驗證所有權,自行管理介紹,無需管理員核准。
登入並產生驗證檔案,在 30 分鐘內將其提交至此儲存庫的預設分支。其他分支或分叉儲存庫中的檔案無效。然後在下方檢查檔案,即可無需管理員核准直接管理專案。請保留檔案以維持管理權限。
如需登入,將前往登入頁面。登入後請回到此處,再次點擊所選的驗證按鈕。
在專案資料夾中執行 /nomorevibe verify,即可驗證所有權並自行管理介紹。
一分鐘完成驗證製作者的介紹僅有上面的一句話。 更多詳情請閱讀儲存庫 README。 儲存庫 README ↗
正在載入完整 README。
檢視完整 README ↗.. image:: https://github.com/exhuma/gouge/actions/workflows/pythonpackage.yml/badge.svg :target: https://github.com/exhuma/gouge/actions/workflows/pythonpackage.yml :alt: CI status
.. image:: https://img.shields.io/pypi/v/gouge.svg :target: https://pypi.org/project/gouge/ :alt: PyPI version
.. image:: https://img.shields.io/pypi/pyversions/gouge.svg :target: https://pypi.org/project/gouge/ :alt: Supported Python versions
.. image:: https://github.com/exhuma/gouge/actions/workflows/docs.yml/badge.svg :target: https://exhuma.github.io/gouge/ :alt: Documentation
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/
.. image:: https://raw.githubusercontent.com/exhuma/gouge/master/docs/_static/snapshot1.png :alt: Console output of gouge: coloured level names, logger names in bold, and a red traceback.
gouge needs Python 3.11 or newer::
pip install gouge
::
>>> 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 <https://exhuma.github.io/gouge/getting-started.html>, configuration files <https://exhuma.github.io/gouge/configuring.html>, extra attributes and correlation IDs <https://exhuma.github.io/gouge/extra-attributes.html>, JSON output <https://exhuma.github.io/gouge/structured-output.html>, uvicorn <https://exhuma.github.io/gouge/uvicorn.html>_ and colour control <https://exhuma.github.io/gouge/colour.html>. The changelog <https://exhuma.github.io/gouge/changelog.html> lists the changes in
every release.
gouge is actively maintained and stable (Production/Stable). It follows
Semantic Versioning; the compatibility policy <https://exhuma.github.io/gouge/#compatibility>_ defines what counts as a
breaking change and how deprecation works.