jaraco.logging
Support for Python logging facility
What it is and what it does
jaraco.logging is a small utility that bridges Python's argparse and logging modules. It provides two main functions: add_arguments() to inject logging-related command-line flags into an ArgumentParser, and setup() to apply those parsed arguments to configure the logging system. This eliminates boilerplate when you want users to control log levels or other logging behavior from the command line.
The package depends only on tempora and requires Python 3.9 or later. It's maintained actively and carries no known security vulnerabilities. The MIT license places no restrictions on use. It's best suited for CLI applications where you want to expose logging configuration to end users without writing repetitive argument-parsing code yourself.
Use it for:
- Add log-level control to a CLI tool without manually defining argparse arguments for logging.
- Quickly prototype a command-line application that needs adjustable verbosity from the start.
- Integrate logging configuration into an existing argparse-based CLI with minimal code changes.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Adds command-line argument parsing for Python logging configuration, letting you quickly set log levels and other logging parameters from the command line.
Yes, if you're building a command-line tool and want to let users control logging verbosity without writing boilerplate. The package is lightweight, actively maintained, permissively licensed, and has no security issues. Install it if you use argparse and logging together; skip it if your CLI doesn't expose logging control to users.
Install
jaraco-logging on PyPI
pip
pip install jaraco-logginguv
uv add jaraco-loggingpoetry
poetry add jaraco-loggingInstalling jaraco.logging
Before you install
Low friction install with a single runtime dependency (tempora). Active maintenance as of April 2026, marked Production/Stable since early releases.
License in practice
MIT license permits commercial and private use with minimal restrictions—standard permissive terms.
Quickstart
import argparse
import jaraco.logging
parser = argparse.ArgumentParser()
jaraco.logging.add_arguments(parser)
args = parser.parse_args()
jaraco.logging.setup(args)
Requires Python 3.9 or later.
Verify before relying
- Whether the package supports log format customization beyond level selection via command-line arguments.
- Whether it integrates with standard Python logging handlers or only the root logger.
Package facts
| License | MIT (permissive) |
| Python support | supports the current Python release (>=3.9) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 1 — tempora |
| Maintenance | actively maintained — 424 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 147,592/month — #11,057 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: jaraco_logging-3.4.0-py3-none-any.whl
Tags
More Software Development packages
Provides backported and experimental type hints…
permissive · top 100 on PyPI
numpyNumPy provides an N-dimensional array object…
permissive · top 100 on PyPI
fastapiFastAPI is a Python web framework for building…
permissive · top 100 on PyPI
annotated-docProvides a way to document function parameters,…
permissive · top 100 on PyPI
typerTyper builds command-line applications from…
permissive · top 1,000 on PyPI
distlibDistlib provides low-level packaging utilities…
permissive · top 1,000 on PyPI
logmuseAdds standard CLI logging options…
permissive · top 15,000 on PyPI
ConfigArgParseExtends Python's argparse to parse command-line…
permissive · top 1,000 on PyPI
decliDecli wraps argparse to let you define…
permissive · top 5,000 on PyPI
argparse-dataclassBuilds command-line interfaces declaratively by…
permissive · top 5,000 on PyPI
jsonargparsejsonargparse creates command-line interfaces…
permissive · top 5,000 on PyPI
simple-parsingTransforms argparse scripts into structured,…
permissive · top 5,000 on PyPI
arghArgh turns plain Python functions into…
copyleft · top 5,000 on PyPI
argparseProvides command-line argument parsing for…
permissive · top 1,000 on PyPI
argcompleteProvides bash and zsh tab completion for Python…
permissive · top 1,000 on PyPI
pydantic-argparseGenerates command-line argument parsers from…
permissive · top 5,000 on PyPI