{ "info": { "author": "Miloslav Pojman", "author_email": "miloslav.pojman@gmail.com", "bugtrack_url": null, "classifiers": [ "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Operating System :: OS Independent", "Programming Language :: Python", "Topic :: System :: Logging" ], "description": "SPADL - Sane Python adapter to DbgLog\n=====================================\n\nThis package provides a standard logging handler which writes log\nrecords to `DbgLog`_.\n\nYou are probably not interested in this library unless you are\nworking for Seznam.cz.\n\nA `spadl.DbgLogHandler` class implemented in this package allows you to use\nand write code that uses the standard Python logging and at the same\ntime utilize DbgLog.\n\n.. _DbgLog: http://dbglog.sourceforge.net/\n\n\nInstallation\n------------\n\nSPADL can be installed using pip (or easy_install) from PYPI: ::\n\n $ pip install spadl\n\nAlternatively you can download and extract tarball and install the package manually: ::\n\n $ python setup.py install\n\nPlacing the package somewhere on the PYTHONPATH should also work.\n\n\nExample usage\n-------------\n\nDbgLog distinguish severities of log records with same level.\nMessage can be logged for example as D4 (important debug) or E1 (minor error).\nSo the `spadl.DbgLogHandler` maps logger names to these severities.\n\nThere is `spadl.configure` function defined which simplifies\nlogging configuration. So the basic usage can be similar to: ::\n\n import spadl\n spadl.configure({\n # Log records from the 'app' logger and its children will\n # be logged using the highest severity (D4, I4, W4, E4, F4).\n 'app': 4,\n # But log records from the 'app.request' (and its children)\n # will be logged using a lower severity (D3, I3, W3, E3, F3).\n 'app.request': 3,\n # Another severity for another loggers.\n 'rpc': 2,\n # Log records from the 'db.sql' logger will be ignored.\n 'db.sql': 0,\n # Specification of the default severity. If was not present here then\n # the default behaviour would be to ignore records from unknown loggers.\n '': 1,\n })\n\n # Now use logging normally.\n logging.info('This will be recorded by DbgLog.')\n\nAlternatively you can configure logging using the `logging.config` package.\nA relevant section in a configuration file for the `logging.config.fileConfig`\nfunction can be similar to: ::\n\n [handler_dbglog]\n class=spadl.DbgLogHandler\n level=NOTSET\n args=({'app': 4,\n 'app.request': 3,\n 'rpc': 2,\n '': 1},)\n\nSee (and run) `example.py` for the working example.", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/mila/spadl", "keywords": null, "license": "UNKNOWN", "maintainer": null, "maintainer_email": null, "name": "spadl", "package_url": "https://pypi.org/project/spadl/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/spadl/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/mila/spadl" }, "release_url": "https://pypi.org/project/spadl/0.3/", "requires_dist": null, "requires_python": null, "summary": "This package provides a standard logging handler which writes log records to DbgLog.", "version": "0.3" }, "last_serial": 1896437, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "e7b1f11b40243eafb84a9cc48d115146", "sha256": "96623c761baaf22bf7064388509f977a30e8d675df2f718a1b601a68b6f521df" }, "downloads": -1, "filename": "spadl-0.1.tar.gz", "has_sig": false, "md5_digest": "e7b1f11b40243eafb84a9cc48d115146", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6630, "upload_time": "2014-02-28T17:03:58", "url": "https://files.pythonhosted.org/packages/d1/6c/e8df4834b402d472dcce1ebce88d242db7810300db1e71e5c2aaad51248f/spadl-0.1.tar.gz" } ], "0.2": [ { "comment_text": "", "digests": { "md5": "bc94f9fa9c114cb61de9abeae57efb15", "sha256": "55544aadf2f360c552feaf58ed2db45909eaaf926cc90d55b734808b3a77486c" }, "downloads": -1, "filename": "spadl-0.2.tar.gz", "has_sig": false, "md5_digest": "bc94f9fa9c114cb61de9abeae57efb15", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6832, "upload_time": "2014-03-26T17:27:27", "url": "https://files.pythonhosted.org/packages/34/86/179de6db4434f01166536ab16a554a7608b12e84b912c4964205da6f9a05/spadl-0.2.tar.gz" } ], "0.3": [ { "comment_text": "", "digests": { "md5": "c132156c9d08f3e8ce177795b9f34b04", "sha256": "c1ba4b0853819a5b9f64e0e9ef9ec9f5db3688a8f02d093e1a211f0e743fe952" }, "downloads": -1, "filename": "spadl-0.3.tar.gz", "has_sig": false, "md5_digest": "c132156c9d08f3e8ce177795b9f34b04", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6865, "upload_time": "2016-01-09T12:24:31", "url": "https://files.pythonhosted.org/packages/4d/05/6cc559ca798878cba52a4710089c1007e213916e07c9fd00558b21f31409/spadl-0.3.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "c132156c9d08f3e8ce177795b9f34b04", "sha256": "c1ba4b0853819a5b9f64e0e9ef9ec9f5db3688a8f02d093e1a211f0e743fe952" }, "downloads": -1, "filename": "spadl-0.3.tar.gz", "has_sig": false, "md5_digest": "c132156c9d08f3e8ce177795b9f34b04", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6865, "upload_time": "2016-01-09T12:24:31", "url": "https://files.pythonhosted.org/packages/4d/05/6cc559ca798878cba52a4710089c1007e213916e07c9fd00558b21f31409/spadl-0.3.tar.gz" } ] }