mozlog 1.0
Robust log handling specialized for logging in the Mozilla universe
[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()
| File | Type | Py Version | Uploaded on | Size | # downloads |
|---|---|---|---|---|---|
| mozlog-1.0.tar.gz (md5) | Source | 2011-10-07 | 2KB | 295 | |
- Author: Andrew Halberstadt, Mozilla
- Home Page: http://github.com/ahal/mozbase
- License: MPL 1.1/GPL 2.0/LGPL 2.1
- Platform: Any
- Categories
- Package Index Owner: davehunt, wlach, whimboo, markrcote, jgriffin, elvis314, David.Burns, k0s, ahal, ctalbert
- DOAP record: mozlog-1.0.xml
