Skip to main content

Robust log handling specialized for logging in the Mozilla universe

Project description

[Mozlog]( is a python package intended to simplify and standardize logs in the Mozilla universe. It wraps around python’s [logging]( module and adds some additional functionality.

# Usage

Import mozlog instead of [logging]( (all functionality in the logging module is also available from the mozlog module). To get a logger, call mozlog.getLogger passing in a name and the path to a log file. If no log file is specified, the logger will log to stdout.

import mozlog logger = mozlog.getLogger(‘LOG_NAME’, ‘log_file_path’) logger.setLevel(mozlog.DEBUG)‘foo’) logger.testPass(‘bar’) mozlog.shutdown()

Project details

Download files

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

Files for mozlog, version 1.1
Filename, size File type Python version Upload date Hashes
Filename, size mozlog-1.1.tar.gz (2.8 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page