Skip to main content
mozlogging: MozLog with the logging Module
========================================

.. image:: https://img.shields.io/pypi/v/mozlogging.svg
:target: https://pypi.python.org/pypi/mozlogging

.. image:: https://img.shields.io/pypi/l/mozlogging.svg
:target: https://pypi.python.org/pypi/mozlogging

.. image:: https://img.shields.io/pypi/wheel/mozlogging.svg
:target: https://pypi.python.org/pypi/mozlogging

.. image:: https://img.shields.io/pypi/pyversions/mozlogging.svg
:target: https://pypi.python.org/pypi/mozlogging


Example:

.. code-block:: python

>>> import logging
>>> from mozlogging import MozLogFormatter
>>> logger = logging.getLogger('example')
>>> handler = logging.StreamHandler()
>>> handler.setFormatter(MozLogFormatter())
>>> logger.addHandler(handler)
>>> logger.error({'dict': 1, 'of': 2, 'fields': 3}, 'my.message.type')
{"EnvVersion": "2.0", "Fields": {"dict": 1, "fields": 3, "of": 2}, "Logger": "example", "Severity": 3, "Timestamp": 1489366186847323648, "Type": "my.message.type"}


Release files for mozlogging 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mozlogging 0.1.0
File Size Uploaded
mozlogging-0.1.0.tar.gz 2.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for mozlogging 0.1.0
File Interpreter ABI Platform
mozlogging-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 6.6 kB

Release files / mozlogging-0.1.0.tar.gz

Download URL mozlogging-0.1.0.tar.gz
Size 2.5 kB
Tags Source
SHA-256 checksum
How to use checksums
2e1362b80418b845164d8d47337da838dade05720dbaf17956d1cafebc511b94
BLAKE2b-256 checksum
How to use checksums
3f682d9a54cce962b9dd527955a742edfafc1602bd569d7323ecd1e7d50c4c16
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / mozlogging-0.1.0-py3-none-any.whl

Download URL mozlogging-0.1.0-py3-none-any.whl
Size 4.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2fc3d520a17b048c8723abdba19f6c01f2bcaf4182944aaac5906f28bd5b7d77
BLAKE2b-256 checksum
How to use checksums
7fba22ce0c6292629b15a8a4104a3adcb14044099d3afe2a98ceb7743f5dc1d6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page