skillfed

jaraco.logging

Support for Python logging facility

jaraco-logging v3.4.0 147.6K downloads/30d#11,057 on PyPI1
Permissive license MIT Active released

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-logging

uv

uv add jaraco-logging

poetry

poetry add jaraco-logging

Installing 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

Development Status :: 5 - Production/StableIntended Audience :: DevelopersProgramming Language :: Python :: 3Programming Language :: Python :: 3 :: Only

Tags

command line logging setupargparse logging integrationlog level from clilogging configuration parsercommand-line log control
cli-loggingargparse-helper

More Software Development packages