mozlog
Robust log handling specialized for logging in the Mozilla universe
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 mozloguv
uv add mozlogpoetry
poetry add mozlogInstalling 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
Tags
More Python Modules packages
Converts domain names between Unicode and…
permissive · top 100 on PyPI
setuptoolsSetuptools is a Python build backend and…
permissive · top 100 on PyPI
PyYAMLPyYAML parses and emits YAML 1.1 data format,…
permissive · top 100 on PyPI
pydanticPydantic validates Python data structures…
permissive · top 100 on PyPI
annotated-typesProvides reusable metadata objects for use with…
permissive · top 100 on PyPI
typing-inspectionProvides runtime tools to inspect and…
permissive · top 100 on PyPI
mozfileProvides file and directory utilities for…
copyleft · top 15,000 on PyPI
mozshellutilProvides shell command-line parsing utilities…
copyleft · top 15,000 on PyPI
mozdeviceManages and controls connected mobile devices…
copyleft · top 15,000 on PyPI
mozprocessProvides utilities for spawning, managing, and…
copyleft · top 15,000 on PyPI
mozleakExtracts memory leaks from leak log files,…
copyleft · top 15,000 on PyPI
mozrunnerMozrunner manages the lifecycle of Mozilla…
copyleft · top 15,000 on PyPI
mozcrashExtracts and formats stack traces from minidump…
copyleft · top 15,000 on PyPI
mozinfoProvides system information detection for…
copyleft · top 15,000 on PyPI
dockerflowProvides helpers and tools for implementing…
copyleft · top 15,000 on PyPI
glean-sdkGlean SDK is Mozilla's telemetry collection…
unclear · top 15,000 on PyPI