skillfed

Logbook

A logging replacement for Python

logbook v1.10.1 5.6M downloads/30d#2,065 on PyPI1,506
Permissive license BSD-3-Clause Active released

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 logbook

uv

uv add logbook

poetry

poetry add logbook

Installing 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

Programming Language :: Python :: 3 :: OnlyProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Programming Language :: Python :: 3.15Programming Language :: Python :: 3.9Programming Language :: Python :: Free Threading :: 2 - BetaTopic :: System :: Logging

Tags

python logging replacementstructured logging libraryweb application loggingsimple python logginglogging configurationapplication event logginglog handler framework
loggingweb-friendly

More Logging packages