click-log
Logging integration for Click
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-loguv
uv add click-logpoetry
poetry add click-logInstalling 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
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
more-clickProvides pre-built Click decorators and…
permissive · top 15,000 on PyPI
click-pluginsExtends Click CLI groups to load external…
permissive · top 1,000 on PyPI
rich-clickRenders Click command-line interfaces with rich…
permissive · top 1,000 on PyPI
click-default-groupExtends Click's Group class to invoke a default…
permissive · top 5,000 on PyPI
click-shellConverts a click command-line app into an…
permissive · top 15,000 on PyPI
click-config-fileAdds configuration file support to Click…
permissive · top 15,000 on PyPI
auto-click-autoAutomatically enables tab shell completion for…
permissive · top 15,000 on PyPI
click-datetimeAdds datetime type support to Click, allowing…
permissive · top 15,000 on PyPI
AutologgingAutologging provides decorators to…
permissive · top 15,000 on PyPI
consolekitConsolekit extends click with additional…
permissive · top 15,000 on PyPI