Logbook
A logging replacement for Python
What it is and what it does
Logbook is a logging library that provides an alternative to Python's built-in logging module. It aims to be easier to set up and configure while supporting both traditional command-line applications and web frameworks. The package is actively maintained, supports Python 3.9 through 3.15, and includes beta support for free-threading in newer Python versions.
The library is installed via wheels with broad platform coverage (macOS, Linux, Windows, and ARM architectures). It has a single runtime dependency on typing-extensions, keeping the dependency footprint minimal. The package is in the top 5000 by popularity and has been maintained since its initial release in 2010.
Use it for:
- Replace stdlib logging in web applications where simpler configuration and cleaner API are preferred.
- Set up logging for command-line tools that need straightforward handler and formatter setup.
- Configure multiple log handlers and formatters for development, testing, and production environments.
- Integrate logging into frameworks or libraries that need a lightweight, flexible logging backbone.
- Migrate existing logging code to a more maintainable approach without rewriting all log statements.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Logbook is a logging library that replaces Python's standard logging module with a simpler, more flexible API designed for both command-line and web applications.
Yes, with conditions. Logbook is actively maintained, has no known vulnerabilities, and offers a permissive BSD-3-Clause license. Install it if you prefer a simpler logging API than stdlib logging and are willing to adopt a different library. The medium install friction (compiled wheels) is not a barrier for most projects. Verify that its feature set and design philosophy align with your application's logging needs before committing to it in a large codebase.
Install
logbook on PyPI
pip
pip install logbookuv
uv add logbookpoetry
poetry add logbookInstalling Logbook
Before you install
Medium install friction due to compiled wheels across multiple platforms and Python versions (3.9–3.15). Active maintenance with a recent release (9 days old) and 1506 repository stars suggest reliable upkeep. Single runtime dependency (typing-extensions) keeps the dependency tree lean.
License in practice
BSD-3-Clause is permissive; you can use, modify, and distribute Logbook in commercial and private projects with minimal restrictions, provided you include the license notice.
Quickstart
pip install logbook
import logbook
logger = logbook.Logger('My App')
logger.info('Hello, world!')
Verify before relying
- Whether Logbook's API is genuinely simpler than stdlib logging in practice and what specific setup advantages it offers.
- How Logbook handles concurrent logging in high-throughput web applications compared to standard logging.
- Whether the free-threading beta support (Python 3.14+) is production-ready or still experimental.
- Adoption scale and real-world usage patterns beyond download statistics.
Package facts
| License | BSD-3-Clause (permissive) |
| Python support | supports the current Python release (>=3.9) |
| Install friction | medium — platform-specific wheel |
| Runtime dependencies | 1 — typing-extensions |
| Maintenance | actively maintained — 9 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 5,597,129/month — #2,065 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: logbook-1.10.1-cp310-cp310-macosx_10_12_x86_64.whl; logbook-1.10.1-cp310-cp310-macosx_11_0_arm64.whl; logbook-1.10.1-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.whl; logbook-1.10.1-cp310-cp310-manylinux_2_28_aarch64.whl; logbook-1.10.1-cp310-cp310-musllinux_1_2_aarch64.whl; logbook-1.10.1-cp310-cp310-musllinux_1_2_x86_64.whl; logbook-1.10.1-cp310-cp310-win32.whl; logbook-1.10.1-cp310-cp310-win_amd64.whl; logbook-1.10.1-cp310-cp310-win_arm64.whl; logbook-1.10.1-cp311-cp311-macosx_10_12_x86_64.whl; logbook-1.10.1-cp311-cp311-macosx_11_0_arm64.whl; logbook-1.10.1-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.whl; logbook-1.10.1-cp311-cp311-manylinux_2_28_aarch64.whl; logbook-1.10.1-cp311-cp311-musllinux_1_2_aarch64.whl; logbook-1.10.1-cp311-cp311-musllinux_1_2_x86_64.whl; logbook-1.10.1-cp311-cp311-win32.whl; logbook-1.10.1-cp311-cp311-win_amd64.whl; logbook-1.10.1-cp311-cp311-win_arm64.whl; logbook-1.10.1-cp312-cp312-macosx_10_13_x86_64.whl; logbook-1.10.1-cp312-cp312-macosx_11_0_arm64.whl
Tags
More Logging packages
Wraps any iterable to display a real-time…
copyleft · top 100 on PyPI
python-json-loggerFormats Python logging output as JSON, making…
permissive · top 1,000 on PyPI
structlogstructlog is a structured logging library that…
permissive · top 1,000 on PyPI
loguruLoguru provides a pre-configured logger that…
permissive · top 1,000 on PyPI
coloredlogsAdds colored output to Python's standard…
permissive · top 1,000 on PyPI
wandbwandb is a machine learning experiment tracking…
permissive · top 1,000 on PyPI
requestsRequests is a Python HTTP library that…
permissive · top 100 on PyPI
prompt_toolkitprompt_toolkit is a Python library for building…
permissive · top 1,000 on PyPI
flake8-use-pathlibA flake8 plugin that detects uses of os and…
permissive · top 15,000 on PyPI
configparserProvides an updated ConfigParser implementation…
permissive · top 5,000 on PyPI
pyobjc-framework-OSLogProvides Python bindings to macOS's OSLog…
permissive · top 15,000 on PyPI
noxNox automates testing across multiple Python…
permissive · top 5,000 on PyPI
pure-pcapy3Pure-Python implementation of the pcapy API for…
permissive · top 15,000 on PyPI
turbohtmlParse, query, edit, and serialize HTML and XML…
permissive · top 15,000 on PyPI