Skip to main content

Robust log handling specialized for logging in the Mozilla universe

Project description

[Mozlog](https://github.com/mozilla/mozbase/tree/master/mozlog) is a python package intended to simplify and standardize logs in the Mozilla universe. It wraps around python’s [logging](http://docs.python.org/library/logging.html) module and adds some additional functionality.

# Usage

Import mozlog instead of [logging](http://docs.python.org/library/logging.html) (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) logger.info(‘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.

Source Distribution

mozlog-1.0.tar.gz (3.0 kB view details)

Uploaded Source

File details

Details for the file mozlog-1.0.tar.gz.

File metadata

  • Download URL: mozlog-1.0.tar.gz
  • Upload date:
  • Size: 3.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for mozlog-1.0.tar.gz
Algorithm Hash digest
SHA256 6d4d187823f64b31776b7ac58d9ca313faab159c98bb2c570ddea124f40496de
MD5 b781683aa3a99bebd6fb1de31aef650c
BLAKE2b-256 5a11fd52514aac52848183640f0a5cb7deca5f0fa736520e4b5d7155f17803d4

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