{ "info": { "author": "RJ Gilligan, Ethan McCreadie, Mikey Reppy", "author_email": "rj@somebells.com, ethan.mccreadie@nrg.com, mgpr@abacalab.com", "bugtrack_url": null, "classifiers": [], "description": "# Python RESTful API Asyncronous Logging Handler with Loggly Support\nA simple logging handler for python that will send any logging events out to a\nRESTful API using HTTP POST requests. Fully asyncronuous using requests-futures,\ntested for Python 2 & 3, and has support for Loggly.\n\n## Installation\npip install restapi-logging-handler\n\n## Usage\nImport whichever module(s) you need:\n```\nfrom restapi_logging_handler import RestApiHandler\nfrom restapi_logging_handler import LogglyHandler\n```\n\n### RESTful API Usage\nSet your Python logging handler to send logs to a REST-ful API\n```\nlogger = logging.getLogger(__name__)\nrestapiHandler = RestApiHandler('http://my.restfulapi.com/endpoint/')\nlogger.addHandler(restapiHandler)\nlogger.setLevel(logging.INFO)\nlogger.info(\"Send this to my RESTful API\")\n```\n\nBy default, it sends the log data as a JSON object. You can currently change\nthat to send text instead.\n```\nrestapiHandler = RestApiHandler('http://my.restfulapi.com/endpoint/', 'text')\n```\n\n### Loggly Usage\nSet your Python logging handler to send logs out to your Loggly account. The\nhandler collects logs in a batch and sends them out every `interval` seconds.\nAfter the interval passes, Loggly is sent all the logs collected. There are\n`max_attempts` attempts to send the logs before the internal handleError() method\nand an exception are thrown.\n####Parameters\n- custom_token: The LogglyHandler takes as its first argument the custom token given to you\nwhen you sign up for a Loggly account.\n- app_tags: The second argument can be a tag string,\nor a list of tags to be associated with the log inside of Loggly.\n- interval: defaults to 1 second\n- max_attempts: defaults to 5 attempts\n\n```\nlogglyHandler = LogglyHandler(\n custom_token='loggly-custom-key',\n app_tags=['tag1','tag2',...],\n interval=1.0,\n max_attemps=5\n)\n```\n\n\n## Testing\nInstall tox and run it to test against Python 2 and 3.\n```\nsudo pip install nose\ntox\n```\n\n## Forking\nIf you'd like to extend this to include more REST-ful API's than just Loggly,\nsend me a pull request!\n", "description_content_type": "", "docs_url": null, "download_url": "https://github.com/narwhaljames/restapi-logging-handler/tarball/0.4", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/narwhaljames/restapi-logging-handler.git", "keywords": "rest", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "restapi-logging-handler", "package_url": "https://pypi.org/project/restapi-logging-handler/", "platform": "", "project_url": "https://pypi.org/project/restapi-logging-handler/", "project_urls": { "Download": "https://github.com/narwhaljames/restapi-logging-handler/tarball/0.4", "Homepage": "https://github.com/narwhaljames/restapi-logging-handler.git" }, "release_url": "https://pypi.org/project/restapi-logging-handler/0.4/", "requires_dist": null, "requires_python": "", "summary": "A handler for the python logging module that sends logs through any REST-ful API. With threading and Loggly support that handles batch POSTS.", "version": "0.4" }, "last_serial": 4573398, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "840d861a85d1aa41e47dbf51fedef098", "sha256": "8a7b0a21cef3f2bcc0f05b22e364da619a78ac1c129afe7cf6b44054671f32e6" }, "downloads": -1, "filename": "restapi-logging-handler-0.1.tar.gz", "has_sig": false, "md5_digest": "840d861a85d1aa41e47dbf51fedef098", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3179, "upload_time": "2014-11-07T15:18:34", "url": "https://files.pythonhosted.org/packages/db/d7/de110f8868607721448a8bb82721f53a480adebb99ac9fb10bc7cd5882b1/restapi-logging-handler-0.1.tar.gz" } ], "0.1.10": [ { "comment_text": "", "digests": { "md5": "15a446b2b9504998ebe2cd8855056ef0", "sha256": "fb31951d3c1b667c8032be23bc7771e87c55eaff8c734b862c5afa879f88bb6e" }, "downloads": -1, "filename": "restapi-logging-handler-0.1.10.tar.gz", "has_sig": false, "md5_digest": "15a446b2b9504998ebe2cd8855056ef0", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3361, "upload_time": "2015-01-21T20:08:53", "url": "https://files.pythonhosted.org/packages/6b/ed/4e16ba60c3e10d1179cfc2a6217f33de81b79ae47687733992db4273fc5d/restapi-logging-handler-0.1.10.tar.gz" } ], "0.1.11": [ { "comment_text": "", "digests": { "md5": "19f286953985193b5e6310e249746fca", "sha256": "4b055c4c7e788477e059900c11b2260e953f1161ef177bb5fb3cf1e7e847970c" }, "downloads": -1, "filename": "restapi-logging-handler-0.1.11.tar.gz", "has_sig": false, "md5_digest": "19f286953985193b5e6310e249746fca", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3360, "upload_time": "2015-01-22T20:58:02", "url": "https://files.pythonhosted.org/packages/d8/e2/a4b049217b943d7c2fa8d53ab27467b3229dffe0148370031dc9882ae727/restapi-logging-handler-0.1.11.tar.gz" } ], "0.1.2": [ { "comment_text": "", "digests": { "md5": "b16e7db04d3c5222c1a5e42f1905c856", "sha256": "ea1c42a6f5af3f42937c21bc8fa813f6a8d9cf3afe7dfd67960f3b43d70baa39" }, "downloads": -1, "filename": "restapi-logging-handler-0.1.2.tar.gz", "has_sig": false, "md5_digest": "b16e7db04d3c5222c1a5e42f1905c856", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3356, "upload_time": "2014-11-07T15:53:57", "url": "https://files.pythonhosted.org/packages/cd/38/b76174057f90e7209ebd8c08db923a48e8195677d6880e5074df8bed4f14/restapi-logging-handler-0.1.2.tar.gz" } ], "0.1.5": [ { "comment_text": "", "digests": { "md5": "d76d4e4478695e785fd470fa47937bbb", "sha256": "924fed6c0c3c7a4224a75eeafe132a667c3e8e9c6a7fd4e5db01221cea6cc2e2" }, "downloads": -1, "filename": "restapi-logging-handler-0.1.5.tar.gz", "has_sig": false, "md5_digest": "d76d4e4478695e785fd470fa47937bbb", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3396, "upload_time": "2015-01-07T15:52:15", "url": "https://files.pythonhosted.org/packages/b2/83/4c541275ef508cb77928ed37872dd0d61cf3f25e199b04c5f68e446926d8/restapi-logging-handler-0.1.5.tar.gz" } ], "0.1.6": [ { "comment_text": "", "digests": { "md5": "db96975cdbd93b4d69ef318fb2315520", "sha256": "4bc9701948424cd9d40a97915a2420fdf6cbf2855045c4a5331b74dad1b8b636" }, "downloads": -1, "filename": "restapi-logging-handler-0.1.6.tar.gz", "has_sig": false, "md5_digest": "db96975cdbd93b4d69ef318fb2315520", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3419, "upload_time": "2015-01-07T19:45:17", "url": "https://files.pythonhosted.org/packages/da/fe/f31393c91a7c52a61554989cad1b8e7a358a449a88874a3d91bd25e59bcf/restapi-logging-handler-0.1.6.tar.gz" } ], "0.1.7": [ { "comment_text": "", "digests": { "md5": "805f7d009c63864d8c9a8f55423bddae", "sha256": "8b55aa75d1e12e8f2a6b8580079ee5fcbef4dfb8dad3dc1fa29515839cf67007" }, "downloads": -1, "filename": "restapi-logging-handler-0.1.7.tar.gz", "has_sig": false, "md5_digest": "805f7d009c63864d8c9a8f55423bddae", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3586, "upload_time": "2015-01-19T17:25:14", "url": "https://files.pythonhosted.org/packages/3d/2a/01b2eac5c0167eee2dbd75a01a1033574d167489c96ff17a96740d10725d/restapi-logging-handler-0.1.7.tar.gz" } ], "0.1.8": [ { "comment_text": "", "digests": { "md5": "00424d351a631de136438de1e11efb33", "sha256": "0501d624325da1ab67c364e1f0ce51e6b45160410db39879c95242db07b1bbad" }, "downloads": -1, "filename": "restapi-logging-handler-0.1.8.tar.gz", "has_sig": false, "md5_digest": "00424d351a631de136438de1e11efb33", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3556, "upload_time": "2015-01-19T18:54:49", "url": "https://files.pythonhosted.org/packages/85/c7/36926ba1a8be70249172b81bf177abed8c97f092b0e7d94a64f4ec6f3b53/restapi-logging-handler-0.1.8.tar.gz" } ], "0.1.9": [ { "comment_text": "", "digests": { "md5": "36c22fa1f65691e408b10c1d8a7db1f2", "sha256": "0e9bc1ca68448e613a6e7ccf1f6a25776bdb1b32b13a9f8d02644b9d972370ba" }, "downloads": -1, "filename": "restapi-logging-handler-0.1.9.tar.gz", "has_sig": false, "md5_digest": "36c22fa1f65691e408b10c1d8a7db1f2", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3430, "upload_time": "2015-01-19T20:17:07", "url": "https://files.pythonhosted.org/packages/bc/e2/e3cf5f76639080374c6adc4171e8d70e561cb699b140790c45c30341f327/restapi-logging-handler-0.1.9.tar.gz" } ], "0.2.0": [ { "comment_text": "", "digests": { "md5": "d52970540ec0e7521f4462d39e9a239e", "sha256": "74fc613f68edf61706afa88f949bf3b7f6a24d4f5b5fb0c26bdfd3aaeb193d3c" }, "downloads": -1, "filename": "restapi-logging-handler-0.2.0.tar.gz", "has_sig": false, "md5_digest": "d52970540ec0e7521f4462d39e9a239e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4059, "upload_time": "2015-02-04T19:17:28", "url": "https://files.pythonhosted.org/packages/7c/5f/abf2ad74ddfcd79e3febc96a0aa72225c70f904d164f91485a96874272bb/restapi-logging-handler-0.2.0.tar.gz" } ], "0.2.1": [ { "comment_text": "", "digests": { "md5": "8667eafe858d59d93492f219add706ab", "sha256": "9ea6650fbc9e450e957ed16b41c579fbe83ce54781bc1b9df088620753583263" }, "downloads": -1, "filename": "restapi-logging-handler-0.2.1.tar.gz", "has_sig": false, "md5_digest": "8667eafe858d59d93492f219add706ab", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4208, "upload_time": "2015-02-04T20:50:21", "url": "https://files.pythonhosted.org/packages/9e/76/833a147ab33555a9eb235356c890a599aa8b554de2b4a9e21ced1656ce66/restapi-logging-handler-0.2.1.tar.gz" } ], "0.2.2": [ { "comment_text": "", "digests": { "md5": "47bc333de9f60435f4f306fe1df0ebdc", "sha256": "9e96d63e7a00dbf06be22d369d71d31bff2ab61d5cda192e5b4bb3cf8fe52a23" }, "downloads": -1, "filename": "restapi-logging-handler-0.2.2.tar.gz", "has_sig": false, "md5_digest": "47bc333de9f60435f4f306fe1df0ebdc", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4269, "upload_time": "2015-02-12T20:43:45", "url": "https://files.pythonhosted.org/packages/53/f6/dfc71c891bf6e5c28e0f2582d75e4c4a44122048bef18dce8004131c9e74/restapi-logging-handler-0.2.2.tar.gz" } ], "0.3": [ { "comment_text": "", "digests": { "md5": "33d7164c92c5d7fc2f90a7791a3ddc52", "sha256": "1f9546008a8fe036f743d1fee4f3735c7381b5432a0d98b3e8d23b2c3cf7df70" }, "downloads": -1, "filename": "restapi-logging-handler-0.3.tar.gz", "has_sig": false, "md5_digest": "33d7164c92c5d7fc2f90a7791a3ddc52", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6087, "upload_time": "2018-06-04T15:57:59", "url": "https://files.pythonhosted.org/packages/d6/c5/1a04b066e1402c8d3a23cc4dcf7f35aaef9611bfa91925fc85a995727ba7/restapi-logging-handler-0.3.tar.gz" } ], "0.4": [ { "comment_text": "", "digests": { "md5": "54d50d57f841043629572e48a68cb0e5", "sha256": "9a84de94ae99cd04fb9b6503ab5d792084bf6ab50e0055eba6d23f7568927fe0" }, "downloads": -1, "filename": "restapi-logging-handler-0.4.tar.gz", "has_sig": false, "md5_digest": "54d50d57f841043629572e48a68cb0e5", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6077, "upload_time": "2018-12-07T21:28:35", "url": "https://files.pythonhosted.org/packages/9e/7b/3b046126e3077c9bdaa17e7421864111c56c7735144e3dd38208fa5ea94b/restapi-logging-handler-0.4.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "54d50d57f841043629572e48a68cb0e5", "sha256": "9a84de94ae99cd04fb9b6503ab5d792084bf6ab50e0055eba6d23f7568927fe0" }, "downloads": -1, "filename": "restapi-logging-handler-0.4.tar.gz", "has_sig": false, "md5_digest": "54d50d57f841043629572e48a68cb0e5", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6077, "upload_time": "2018-12-07T21:28:35", "url": "https://files.pythonhosted.org/packages/9e/7b/3b046126e3077c9bdaa17e7421864111c56c7735144e3dd38208fa5ea94b/restapi-logging-handler-0.4.tar.gz" } ] }