{ "info": { "author": "Rob Dennis", "author_email": "rdennis+unterpolation@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.0", "Programming Language :: Python :: 3.1", "Programming Language :: Python :: 3.2", "Programming Language :: Python :: 3.3", "Topic :: Software Development :: Libraries :: Python Modules", "Topic :: System :: Logging" ], "description": "logging_unterpolation\r\n==============================\r\n\r\nlogging_unterpolation is a very simple module that will patch the built-in logging module to accept PEP-3101 compliant string formatting (using the str.format method) as well as falling back to accept the original string interpolation operator (% or 'modulo')\r\n\r\nHere's a basic example:\r\n\r\n >>> import logging\r\n >>> from logging_unterpolation import patch_logging\r\n >>> logging.basicConfig(level=logging.DEBUG)\r\n >>> logging.debug('test')\r\n DEBUG:root:test\r\n >>> logging.debug('%s', 'test') # example of built-in string interpolation in log messages\r\n DEBUG:root:test\r\n >>> patch_logging()\r\n >>> logging.debug('{0}', 'test') # format syntax not supported unless patched\r\n DEBUG:root:test", "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/robdennis/logging_unterpolation", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "logging_unterpolation", "package_url": "https://pypi.org/project/logging_unterpolation/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/logging_unterpolation/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/robdennis/logging_unterpolation" }, "release_url": "https://pypi.org/project/logging_unterpolation/0.2.0/", "requires_dist": null, "requires_python": null, "summary": "patch logging module to accept PEP-3101 formatting syntax", "version": "0.2.0" }, "last_serial": 1331364, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "771329ef6660a5276afe4f756df5d4d3", "sha256": "7eb00249c1b0f2000a359964910c87b071efa4f7fccd6383ec579375bc678edf" }, "downloads": -1, "filename": "logging_unterpolation-0.1.0.tar.gz", "has_sig": false, "md5_digest": "771329ef6660a5276afe4f756df5d4d3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5547, "upload_time": "2011-12-22T05:55:29", "url": "https://files.pythonhosted.org/packages/06/a0/0b10ce1db1b7438b3141a27eddf235845652caf993ba32ae2054b5e2547c/logging_unterpolation-0.1.0.tar.gz" } ], "0.1.0a1": [ { "comment_text": "", "digests": { "md5": "eb05265002d0b748c1f2f830475b661a", "sha256": "035b5f13d22ab51e9ba7d4faacc88c9b3e1264e88994feacbb098aa17b585186" }, "downloads": -1, "filename": "logging_unterpolation-0.1.0a1.tar.gz", "has_sig": false, "md5_digest": "eb05265002d0b748c1f2f830475b661a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3984, "upload_time": "2011-08-08T05:51:08", "url": "https://files.pythonhosted.org/packages/2f/5f/758551cf0700dca32da72517ad0bf4c02964512269f70219a01e49fd7ab5/logging_unterpolation-0.1.0a1.tar.gz" } ], "0.1.0a3": [ { "comment_text": "", "digests": { "md5": "8ff80ad29e1f7105ec91ac663a20e351", "sha256": "d8b3b222730e432dd1f904bb6d9e3cfbf2b6e9ce57a8a4e43868fc7c8abdff5e" }, "downloads": -1, "filename": "logging_unterpolation-0.1.0a3.tar.gz", "has_sig": false, "md5_digest": "8ff80ad29e1f7105ec91ac663a20e351", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4722, "upload_time": "2011-11-12T02:40:21", "url": "https://files.pythonhosted.org/packages/ba/22/24c5539c117c8c08cf7c3bb83f71d56797be06dcae35f3bd2dafb0c09108/logging_unterpolation-0.1.0a3.tar.gz" } ], "0.2.0": [ { "comment_text": "", "digests": { "md5": "d0d4de0763be1a1cf044e7ddcce8e1a8", "sha256": "8bca6fb1aca94568d8f6a9b104bc057d09397a3f3c780b65a26c445c1446ebed" }, "downloads": -1, "filename": "logging_unterpolation-0.2.0.tar.gz", "has_sig": false, "md5_digest": "d0d4de0763be1a1cf044e7ddcce8e1a8", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5927, "upload_time": "2012-05-11T06:10:50", "url": "https://files.pythonhosted.org/packages/ac/67/8d5057b171de77c81b48705ab0dcc7a9fcdd3118e169a5b94839da8cb145/logging_unterpolation-0.2.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "d0d4de0763be1a1cf044e7ddcce8e1a8", "sha256": "8bca6fb1aca94568d8f6a9b104bc057d09397a3f3c780b65a26c445c1446ebed" }, "downloads": -1, "filename": "logging_unterpolation-0.2.0.tar.gz", "has_sig": false, "md5_digest": "d0d4de0763be1a1cf044e7ddcce8e1a8", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5927, "upload_time": "2012-05-11T06:10:50", "url": "https://files.pythonhosted.org/packages/ac/67/8d5057b171de77c81b48705ab0dcc7a9fcdd3118e169a5b94839da8cb145/logging_unterpolation-0.2.0.tar.gz" } ] }