Skip to main content

MozLog with the logging Module

Project description

mozlogging: MozLog with the logging Module
========================================

.. image:: https://img.shields.io/pypi/v/mozlogging.svg
:target: https://pypi-hypernode.com/pypi/mozlogging

.. image:: https://img.shields.io/pypi/l/mozlogging.svg
:target: https://pypi-hypernode.com/pypi/mozlogging

.. image:: https://img.shields.io/pypi/wheel/mozlogging.svg
:target: https://pypi-hypernode.com/pypi/mozlogging

.. image:: https://img.shields.io/pypi/pyversions/mozlogging.svg
:target: https://pypi-hypernode.com/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"}


Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mozlogging-0.1.0.tar.gz (2.5 kB view details)

Uploaded Source

Built Distribution

mozlogging-0.1.0-py3-none-any.whl (4.0 kB view details)

Uploaded Python 3

File details

Details for the file mozlogging-0.1.0.tar.gz.

File metadata

  • Download URL: mozlogging-0.1.0.tar.gz
  • Upload date:
  • Size: 2.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for mozlogging-0.1.0.tar.gz
Algorithm Hash digest
SHA256 2e1362b80418b845164d8d47337da838dade05720dbaf17956d1cafebc511b94
MD5 53a89eb9b007d1b7bc0d705eee7ba8e6
BLAKE2b-256 3f682d9a54cce962b9dd527955a742edfafc1602bd569d7323ecd1e7d50c4c16

See more details on using hashes here.

File details

Details for the file mozlogging-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for mozlogging-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2fc3d520a17b048c8723abdba19f6c01f2bcaf4182944aaac5906f28bd5b7d77
MD5 b3e49840ce3fa1974c87c19144f61a98
BLAKE2b-256 7fba22ce0c6292629b15a8a4104a3adcb14044099d3afe2a98ceb7743f5dc1d6

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page