{ "info": { "author": "Jeremy Jones", "author_email": "jeremyj@letifer.org", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable" ], "description": "ScribeHandler is a simple proxy layer that works with the python standard\r\nlogging module (http://docs.python.org/library/logging.html). ScribeHandler\r\nacts a a handler object that gets added to a logger in the standard way.\r\n\r\nImportant bits:\r\n\r\nWhen instantiating the handler, you will want to specify the connection\r\nsetting to scribed. The following keyword arguments are reconized (and\r\ndefaults):\r\n\r\nArgument Default\r\n---------------------------\r\nhost 127.0.0.1\r\nport 1463\r\ncategory %(hostname)s-%(loggername)s\r\ntransport ScribeHandler.FRAMED\r\nuri None\r\n\r\n- Host and port, should be obvious\r\n\r\n- If transport is ScribeHandler.FRAMED, then\r\n thrift.transport.TTransport.TFramedTransport() is used.\r\n- If transport is ScribeHandler.BUFFERED, then\r\n thrift.transport.TTransport.TBufferedTransport() is used.\r\n- If transport is ScribeHandler.HTTP then\r\n thrift.transport.THttpClient.THttpClient() is used and uri MUST NOT be\r\n None\r\n- If transport is None then you can assign any acceptable Thrift/Scribe\r\n transport via \r\n\r\n ScirbeHandler.transport = \r\n\r\n where is a valid Scibe/Thrift transport (this is an attempt at\r\n future proofing).\r\n\r\n- category is translated into the category parameter to scribe.LogEntry()\r\n object. It should be a standard format string using mapping keys.\r\n The following are the reconized mapping keys:\r\n\r\n Key Name Source\r\n ----------------------\r\n module logging.LogRecord.module\r\n levelname logging.LogRecord.levelname\r\n loggername logging.LogRecord.name\r\n processname logging.LogRecord.processName\r\n hostname socket.gethostname()\r\n\r\n\r\nHere's a simple example of how to use it:\r\n\r\nimport logging\r\nimport ScribeHandler\r\nmylogger = logging.getLogger('ScribeLogger')\r\nmylogger.setLevel(logging.DEBUG)\r\nhandler = ScribeHandler.ScribeHandler(category='%(hostname)s-%(levelname)s', file_buffer='/tmp/logbuffer')\r\nmylogger.addHandler(handler)\r\n\r\nmylogger.debug('stuff happens')", "description_content_type": null, "docs_url": null, "download_url": "http://pypi.python.org/pypi/ScribeHandler", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://github.com/jmj/ScribeHandler", "keywords": "scribe,logging,scribed", "license": "GPLv2", "maintainer": "", "maintainer_email": "", "name": "ScribeHandler", "package_url": "https://pypi.org/project/ScribeHandler/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/ScribeHandler/", "project_urls": { "Download": "http://pypi.python.org/pypi/ScribeHandler", "Homepage": "http://github.com/jmj/ScribeHandler" }, "release_url": "https://pypi.org/project/ScribeHandler/0.05/", "requires_dist": null, "requires_python": null, "summary": "ScribeHandler is a simple proxy layer that works with the python standard logging module", "version": "0.05" }, "last_serial": 785614, "releases": { "0.01": [ { "comment_text": "", "digests": { "md5": "109e5a7481df7f7346d93951e74e173a", "sha256": "ec9990b84947ff4b33c267e68f1c6be0fbb158f0f6ef5206be01ffaac18c0b16" }, "downloads": -1, "filename": "ScribeHandler-0.01.tar.gz", "has_sig": false, "md5_digest": "109e5a7481df7f7346d93951e74e173a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9153, "upload_time": "2010-07-02T21:40:52", "url": "https://files.pythonhosted.org/packages/7b/a5/e3c8e3dc98d335bcb65e0193f18c70490611985c58223f04e2d26a384a7e/ScribeHandler-0.01.tar.gz" } ], "0.02": [ { "comment_text": "", "digests": { "md5": "9401696ec8243b347eedf7f7b24ca901", "sha256": "9c2de326a650c97cf4ad8c8a3654ac5a142c8ace6bac6e2d038b0d8056c53e13" }, "downloads": -1, "filename": "ScribeHandler-0.02.tar.gz", "has_sig": false, "md5_digest": "9401696ec8243b347eedf7f7b24ca901", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9164, "upload_time": "2010-07-02T21:44:02", "url": "https://files.pythonhosted.org/packages/e8/c3/e7de16605906e7f406e437c6ad5aec2937b180edb6f00b798c5f0183d5ea/ScribeHandler-0.02.tar.gz" } ], "0.03": [ { "comment_text": "", "digests": { "md5": "f5b8f218ba632a19f1812524758bd1c3", "sha256": "05670a26ecf81fea10bd8984bd040a4dab77c46ecdf9068c834226dd4acde865" }, "downloads": -1, "filename": "ScribeHandler-0.03.tar.gz", "has_sig": false, "md5_digest": "f5b8f218ba632a19f1812524758bd1c3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8405, "upload_time": "2010-08-06T18:46:20", "url": "https://files.pythonhosted.org/packages/9b/cf/7b58f99a51bc4506ee53a70a3824cd0a080fb2ce1c391301a5bc2772519b/ScribeHandler-0.03.tar.gz" } ], "0.05": [ { "comment_text": "", "digests": { "md5": "7a717413f52e36e0c086bd20abfece10", "sha256": "763a125cd6fea41c32720cf3d01b0831716da75857c66bbf7e085f28c9a5e7c3" }, "downloads": -1, "filename": "ScribeHandler-0.05.tar.gz", "has_sig": false, "md5_digest": "7a717413f52e36e0c086bd20abfece10", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9213, "upload_time": "2011-05-16T20:05:45", "url": "https://files.pythonhosted.org/packages/bb/3e/52939f22e96d3e537b203235ae436f7b9923754e99a13b210a518626197e/ScribeHandler-0.05.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "7a717413f52e36e0c086bd20abfece10", "sha256": "763a125cd6fea41c32720cf3d01b0831716da75857c66bbf7e085f28c9a5e7c3" }, "downloads": -1, "filename": "ScribeHandler-0.05.tar.gz", "has_sig": false, "md5_digest": "7a717413f52e36e0c086bd20abfece10", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9213, "upload_time": "2011-05-16T20:05:45", "url": "https://files.pythonhosted.org/packages/bb/3e/52939f22e96d3e537b203235ae436f7b9923754e99a13b210a518626197e/ScribeHandler-0.05.tar.gz" } ] }