{ "info": { "author": "Jed Parsons", "author_email": "jed@jedparsons.com", "bugtrack_url": null, "classifiers": [], "description": "=====================================================\nRedisLog - A Redis Pub/Sub Logging Handler for Python\n=====================================================\n\nA logging handler for Python that publishes log messages using redis's \npub/sub system. You can use this to read or respond to streaming log\ndata in real time.\n\nInstallation\n------------\n\nThe current stable release ::\n\n easy_install python-redis-log\n\nThe latest from github_ ::\n\n git clone git://github.com/jedp/python-redis-log.git\n cd python-redis-log\n python setup.py build\n python setup.py install --prefix=$HOME # for example\n\n.. _github: https://github.com/jedp/python-redis-log\n \nRequirements\n------------\n\n- redis_ \n- The `Python redis client`_ by Andy McCurdy\n- simplejson_ \n\n.. _redis: http://redis.io/\n.. _Python redis client: https://github.com/andymccurdy/redis-py\n.. _simplejson: https://github.com/simplejson/simplejson\n\nUsage\n-----\n\n::\n\n >>> from redislog import handlers, logger\n >>> l = logger.RedisLogger('my.logger')\n >>> l.addHandler(handlers.RedisHandler.to(\"my:channel\"))\n >>> l.info(\"I like pie\")\n >>> l.error(\"Trousers!\", exc_info=True)\n\nRedis clients subscribed to ``my:channel`` will get a json log record like the\nfollowing (sent from function ``foo()`` in file ``test.py``: ::\n\n { username: 'jed',\n args: [],\n name: 'my.logger',\n level: 'info',\n line_no: 6,\n traceback: null,\n filename: 'test.py',\n time: '2011-06-02T14:50:08.237052',\n msg: 'winning',\n funcname: 'foo',\n hostname: 'smoothie.local' }\n\nIf an exception is raised, and ``exc_info`` is ``True``, the log will include\na formatted traceback in ``traceback``.\n\nThe date is stored as an ISO 8601 string in GMT. \n\nYou can use the ``redis-cli`` shell that comes with ``redis`` to test this. At\nthe shell prompt, type ``subscribe my:channel`` (replacing with the channel\nname you choose, of course). You will see subsequent log data printed in the\nshell.\n\nServing Suggestion\n------------------\n\nRedis pub/sub messages are not persistent; they are just messages. So you will\nprobably wish to use this handler in conjunction with other handlers that\nactually save your data, like the standard python FileHandlers, or \nAndrei Savu's `MongoDB logging handler`_.\n\n.. _MongoDB logging handler: https://github.com/andreisavu/mongodb-log\n\nContributors\n------------\n\n- `Yannis Leidel`_\n\n.. _Yannis Leidel: http://github.com/jezdez", "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/jedp/python-redis-log", "keywords": null, "license": "MIT", "maintainer": null, "maintainer_email": null, "name": "python-redis-log", "package_url": "https://pypi.org/project/python-redis-log/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/python-redis-log/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/jedp/python-redis-log" }, "release_url": "https://pypi.org/project/python-redis-log/0.1.2/", "requires_dist": null, "requires_python": null, "summary": "Redis pub/sub logging handler for python", "version": "0.1.2" }, "last_serial": 798045, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "1cfe40ad69814abf1532fdae69f572be", "sha256": "eead38d1ebec6932ebf3301d378d1b2537aec75f858cf32754a2833ad808548b" }, "downloads": -1, "filename": "python_redis_log-0.0.1-py2.6.egg", "has_sig": true, "md5_digest": "1cfe40ad69814abf1532fdae69f572be", "packagetype": "bdist_egg", "python_version": "2.6", "requires_python": null, "size": 6710, "upload_time": "2011-05-29T08:19:24", "url": "https://files.pythonhosted.org/packages/c0/5a/4badac7ad2964349d20878c195e07f2cc9f3ef183627d743450262ee59c7/python_redis_log-0.0.1-py2.6.egg" }, { "comment_text": "", "digests": { "md5": "0792fbdb409211b74ed3b56e6647ce04", "sha256": "6aef68e4a8d6907ba05eff3c2e8898e0bf27a1d9a5cb26d0cc212e74d05dd2d2" }, "downloads": -1, "filename": "python-redis-log-0.0.1.tar.gz", "has_sig": true, "md5_digest": "0792fbdb409211b74ed3b56e6647ce04", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2626, "upload_time": "2011-05-29T08:19:55", "url": "https://files.pythonhosted.org/packages/b9/3e/38d07b0d22a3d64196cf188887356c02ba6708dc997e04f12c534e3815a8/python-redis-log-0.0.1.tar.gz" } ], "0.1.0": [ { "comment_text": "", "digests": { "md5": "36cac387bb4bff9784de70050bbfce88", "sha256": "a12b78a630b7d1c2cb02462f1ceaeb8b5939a429124a35f3d11cb9136ac23598" }, "downloads": -1, "filename": "python_redis_log-0.1.0-py2.6.egg", "has_sig": true, "md5_digest": "36cac387bb4bff9784de70050bbfce88", "packagetype": "bdist_egg", "python_version": "2.6", "requires_python": null, "size": 8147, "upload_time": "2011-05-30T07:37:00", "url": "https://files.pythonhosted.org/packages/58/df/ddb37867d2e24c22f72119ad0a5659d9ae7af44652fdc6b7721519d0cb1b/python_redis_log-0.1.0-py2.6.egg" }, { "comment_text": "", "digests": { "md5": "b744f16ffd455d1398c73f7c41b2381c", "sha256": "ed2e19cbc592a5df7cb09eaaf45329b6036072711486b406fe7f5a56195346e7" }, "downloads": -1, "filename": "python-redis-log-0.1.0.tar.gz", "has_sig": true, "md5_digest": "b744f16ffd455d1398c73f7c41b2381c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2667, "upload_time": "2011-05-30T07:37:22", "url": "https://files.pythonhosted.org/packages/90/de/cc05b2468a1e6ecc98aed3675fb12875d9d9cfd00735717a3829c03102fa/python-redis-log-0.1.0.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "06c23a65f7b9e4e300932f96d39c2616", "sha256": "e7b6ed091d71ca9505fed764955538ad1d5ad3a071d49222bf99256cce13adbf" }, "downloads": -1, "filename": "python_redis_log-0.1.1-py2.6.egg", "has_sig": true, "md5_digest": "06c23a65f7b9e4e300932f96d39c2616", "packagetype": "bdist_egg", "python_version": "2.6", "requires_python": null, "size": 6731, "upload_time": "2011-06-02T08:28:47", "url": "https://files.pythonhosted.org/packages/92/d8/80881c5b6b92a8115f6eb94e2be13aa158dbb32c42f6800deed1bd805738/python_redis_log-0.1.1-py2.6.egg" }, { "comment_text": "", "digests": { "md5": "75d43167edebda5085809b493573c05c", "sha256": "93e7a6be60ad8c8df711a81689cff47ad5c41740bd8e9b3efee1260d6c49287f" }, "downloads": -1, "filename": "python-redis-log-0.1.1.tar.gz", "has_sig": true, "md5_digest": "75d43167edebda5085809b493573c05c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3814, "upload_time": "2011-06-02T08:29:21", "url": "https://files.pythonhosted.org/packages/23/17/2d6e648c6bc9ad9fedbf55c7a3d8e80eb1d5ff0c531f9c57874eba9d39d5/python-redis-log-0.1.1.tar.gz" } ], "0.1.2": [ { "comment_text": "", "digests": { "md5": "36451d2f63f43f7224c7bc399137430b", "sha256": "c4ceca42c726042b8f69b57bf04a036456937815f2cadaba7b3eced01e5ab81c" }, "downloads": -1, "filename": "python_redis_log-0.1.2-py2.6.egg", "has_sig": true, "md5_digest": "36451d2f63f43f7224c7bc399137430b", "packagetype": "bdist_egg", "python_version": "2.6", "requires_python": null, "size": 7837, "upload_time": "2011-06-03T16:00:13", "url": "https://files.pythonhosted.org/packages/89/f2/7f60d083d21e97551d1be7c049ec4c756e7ad2e6c70eacde148dcbecaa27/python_redis_log-0.1.2-py2.6.egg" }, { "comment_text": "", "digests": { "md5": "36abbdf554ae03b7770300f322116656", "sha256": "2b470f31f1481336d596e6d9e850ad3e6cbfebc0425f189b3309a98d2eaf3dfa" }, "downloads": -1, "filename": "python-redis-log-0.1.2.tar.gz", "has_sig": true, "md5_digest": "36abbdf554ae03b7770300f322116656", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4676, "upload_time": "2011-06-03T15:59:54", "url": "https://files.pythonhosted.org/packages/da/a3/0c6108ea0978a9533bac4f645171dcdacf7e89a67baa56c228fb795f0c0e/python-redis-log-0.1.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "36451d2f63f43f7224c7bc399137430b", "sha256": "c4ceca42c726042b8f69b57bf04a036456937815f2cadaba7b3eced01e5ab81c" }, "downloads": -1, "filename": "python_redis_log-0.1.2-py2.6.egg", "has_sig": true, "md5_digest": "36451d2f63f43f7224c7bc399137430b", "packagetype": "bdist_egg", "python_version": "2.6", "requires_python": null, "size": 7837, "upload_time": "2011-06-03T16:00:13", "url": "https://files.pythonhosted.org/packages/89/f2/7f60d083d21e97551d1be7c049ec4c756e7ad2e6c70eacde148dcbecaa27/python_redis_log-0.1.2-py2.6.egg" }, { "comment_text": "", "digests": { "md5": "36abbdf554ae03b7770300f322116656", "sha256": "2b470f31f1481336d596e6d9e850ad3e6cbfebc0425f189b3309a98d2eaf3dfa" }, "downloads": -1, "filename": "python-redis-log-0.1.2.tar.gz", "has_sig": true, "md5_digest": "36abbdf554ae03b7770300f322116656", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4676, "upload_time": "2011-06-03T15:59:54", "url": "https://files.pythonhosted.org/packages/da/a3/0c6108ea0978a9533bac4f645171dcdacf7e89a67baa56c228fb795f0c0e/python-redis-log-0.1.2.tar.gz" } ] }