skillfed

click-log

Logging integration for Click

click-log v0.4.0 3.9M downloads/30d#2,463 on PyPI110
Permissive license MIT Abandoned released

What it is and what it does

click-log bridges Python's standard logging module and Click, the popular CLI framework. It lets you attach logging handlers and configuration to Click commands through decorators and parameters, so your CLI tools can emit logs without boilerplate. The package has no runtime dependencies, making it lightweight to add to existing applications.

The package is in Beta status and has been unmaintained since early 2022. It was last tested against Python 3.7, 3.8, 3.9, and 3.10. If you're building a new CLI tool or maintaining an existing one on a recent Python version, you should verify that click-log still works with your current environment before relying on it, since there's no active development to keep pace with framework updates.

Use it for:

  • Add logging to a Click CLI application without manually wiring handlers and formatters to Click's parameter system.
  • Configure log levels and output streams through Click command-line options.
  • Integrate logging into existing Click-based tools with minimal code changes.

Worth the install?

AI-flagged interpretation of the facts on this page — verify before relying

Integrates Python's standard logging module with Click command-line applications, allowing you to configure and manage log output through Click's decorator and parameter system.

Yes, if you are using Click and need simple logging integration on Python 3.7–3.10 and don't expect Click to change significantly. No, if you are starting a new project or targeting newer Python versions—the lack of maintenance since 2022 means compatibility issues are likely and will not be fixed.

Install

click-log on PyPI

pip

pip install click-log

uv

uv add click-log

poetry

poetry add click-log

Installing click-log

Before you install

Low install friction with no runtime dependencies. However, the package is abandoned—last release was 2022-03-13 and no commits since 2022-03-25. No active maintenance to address compatibility issues with newer Python versions.

License in practice

MIT license is permissive and imposes no significant restrictions on use, modification, or distribution.

Quickstart

pip install click-log

import click
import click_log
import logging

logger = logging.getLogger(__name__)
click_log.basic_config(logger)

@click.command()
@click_log.simple_verbosity_option(logger)
def cli():
    logger.info('Hello')

if __name__ == '__main__':
    cli()

Verify before relying

  • Whether click-log remains compatible with recent versions of the Click framework given the absence of maintenance since 2022.
  • Whether the package works reliably with Python versions beyond 3.10, which are not listed in its classifiers.

Package facts

License MIT (permissive)
Python support not specified
Install friction low — pure-Python wheel
Runtime dependencies none
Maintenance abandoned — 1,615 days since the last release
Last repo commit
First released
Downloads 3,879,336/month — #2,463 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: click_log-0.4.0-py2.py3-none-any.whl

Development Status :: 4 - BetaEnvironment :: ConsoleEnvironment :: PluginsIntended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9Topic :: System :: Logging

Tags

click logging integrationcli logging with clickclick command loggingpython click loggercommand-line log configurationclick decorator logging
cli-loggingabandoned

More Logging packages