skillfed

mozlog

Robust log handling specialized for logging in the Mozilla universe

mozlog v8.1.0 455.4K downloads/30d#6,560 on PyPI
Copyleft license Mozilla Public License 2.0 (MPL 2.0) Active released

What it is and what it does

mozlog is a Python logging library built for Mozilla's testing and automation infrastructure. It extends standard Python logging with structured output formatting optimized for console display and log aggregation in CI/CD and testing environments. The package integrates with Mozilla-specific tools like blessed, mozterm, mozfile, and mozsystemmonitor to provide unified logging across test runners and automation scripts.

The library targets developers working on Mozilla projects or similar large-scale testing systems where consistent, machine-readable log output is essential. It handles both human-readable console formatting and structured data capture, making logs easier to parse and aggregate across distributed test runs. Installation is straightforward with low friction, and it supports Python 3.8 and later.

Use it for:

  • Logging test results and automation output in Mozilla CI/CD pipelines.
  • Formatting console output for distributed test runners that need structured, parseable logs.
  • Aggregating logs from multiple test processes in a single, consistent format.
  • Integrating logging with other Mozilla automation tools via shared dependencies.

Worth the install?

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

Provides structured logging for Python applications with specialized support for Mozilla testing and automation workflows, handling console output formatting and log aggregation.

Yes, if you are working within the Mozilla testing or automation ecosystem. The package is actively maintained, has low install friction, and fills a specific niche for structured logging in Mozilla projects. No, if you need general-purpose Python logging—standard library alternatives are more widely applicable. The copyleft license (MPL 2.0) requires attention if you plan to modify and redistribute the package.

Install

mozlog on PyPI

pip

pip install mozlog

uv

uv add mozlog

poetry

poetry add mozlog

Installing mozlog

Before you install

Low install friction with a pure-wheel distribution. Actively maintained as of March 2026 with support across Python 3.8–3.13. Four runtime dependencies (blessed, mozterm, mozfile, mozsystemmonitor) are all Mozilla-ecosystem packages.

License in practice

Licensed under Mozilla Public License 2.0 (MPL 2.0), a copyleft license. Derivative works and modifications must be distributed under the same license; use in proprietary projects requires careful review of your distribution model.

Quickstart

pip install mozlog

import mozlog
logger = mozlog.get_default_logger('myapp')
logger.info('Test started')

Requires Python 3.8 or later.

Verify before relying

  • Whether the package is actively developed or in maintenance-only mode beyond the 'active' status designation.
  • Specific logging features and output formats beyond the general 'robust log handling' claim in the summary.

Package facts

License Mozilla Public License 2.0 (MPL 2.0) (copyleft)
Python support supports the current Python release (>=3.8)
Install friction low — pure-Python wheel
Runtime dependencies 4 — blessed, mozterm, mozfile, mozsystemmonitor
Maintenance actively maintained — 144 days since the last release
First released
Downloads 455,357/month — #6,560 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: mozlog-8.1.0-py2.py3-none-any.whl

Development Status :: 4 - BetaEnvironment :: ConsoleIntended Audience :: DevelopersLicense :: OSI Approved :: Mozilla Public License 2.0 (MPL 2.0)Operating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 3 :: OnlyProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9Topic :: Software Development :: Libraries :: Python Modules

Tags

python logging librarystructured log formattingmozilla test loggingconsole output handlerautomation log aggregation
mozilla-ecosystemtest-loggingstructured-output

More Python Modules packages