{ "info": { "author": "Patrick Fournier", "author_email": "patrick@patrickfournier.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Intended Audience :: Developers", "License :: OSI Approved :: Apache Software License", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Topic :: Software Development" ], "description": "Klever KLog\n===========\n\nWhile developing a program, have you ever scrolled and scrolled\nthrough your progam output looking for a trace buried in hundreds of\nlines of log? If so, kleverklog is for you.\n\nKlever KLog uses Apache Kafka to store your program log and provides a\nKafka client to search, filter and navigate your logs.\n\nUsage\n-----\n\nTo use Klever KLog, you need a Kafka server. It is easy to setup. You can run\none locally, without root privileges. Just follow the `quickstart\ninstructions in the Kafka documentation`_.\n\n.. _`quickstart instructions in the Kafka documentation`: http://kafka.apache.org/documentation.html#quickstart\n\nKlever KLog supports Python `logging` and Twisted `twisted.logger`\nlogging systems. Depending of which one you use, setup is slightly\ndifferent.\n\nIf you use Python `logging`:\n\n.. code:: python\n\n import logging\n from kleverklog.python_logging import KafkaHandler\n\n logger = logging.getLogger('your logger name')\n logger.setLevel(logging.DEBUG) # or any other level you like\n kh = KafkaHandler('localhost:9092')\n logger.addHandler(kh)\n\nIf you are using `twisted.logger`:\n\n.. code:: python\n\n from kleverklog.twisted_logger import KafkaLogService\n\n KafkaLogService.activate('localhost:9092')\n\nYour program will now send its log entries to Kafka. To view them,\nstart the log viewer in a terminal:\n\n.. code:: bash\n\n kleverklog all.json\n\nRun your application. The logs should be displayed by Klever KLog,\ncolored by log level.\n\nIn the Klever KLog viewer, you can give the following commands:\n\n`mPATTERN`\n Set the match pattern to PATTERN. New log lines containing PATTERN\n will be highlighted.\n\n`rN`\n Redisplay the last NN log lines, highlighting the ones matching\n the match pattern.\n\n`R`\n Redisplay the whole log, highlighting the lines matching\n the match pattern.\n\n`p`\n Pause the log display.\n\n`P`\n Resume the log display.\n\n`q`\n Quit Klever KLog", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/patrickfournier/kleverklog", "keywords": "kafka logging development twisted", "license": "Apache", "maintainer": "", "maintainer_email": "", "name": "kleverklog", "package_url": "https://pypi.org/project/kleverklog/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/kleverklog/", "project_urls": { "Homepage": "https://github.com/patrickfournier/kleverklog" }, "release_url": "https://pypi.org/project/kleverklog/0.2.0/", "requires_dist": null, "requires_python": "", "summary": "Klever KLog uses Apache Kafka to store your program log and provides a Kafka client to search, filter and navigate your logs.", "version": "0.2.0" }, "last_serial": 2025700, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "fd6fa5723754200e1a6a259d98d9eb4a", "sha256": "a45253802f5ca165f2cbe39beaef5a017c58c11f2225d6d77fee8fee79c89172" }, "downloads": -1, "filename": "kleverklog-0.1.0.tar.gz", "has_sig": false, "md5_digest": "fd6fa5723754200e1a6a259d98d9eb4a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4950, "upload_time": "2016-03-21T02:34:48", "url": "https://files.pythonhosted.org/packages/8a/62/7515ea952771fde86596c56fd5076e9503d36ac8443a52a21fa7c338518d/kleverklog-0.1.0.tar.gz" } ], "0.2.0": [ { "comment_text": "", "digests": { "md5": "6dd682ce861292fce76024dc0a035501", "sha256": "afbd3aa70503f2946d82d7b2227a3c223341053e26cd89cee85b7421c02fe0ca" }, "downloads": -1, "filename": "kleverklog-0.2.0.tar.gz", "has_sig": false, "md5_digest": "6dd682ce861292fce76024dc0a035501", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5617, "upload_time": "2016-03-24T20:02:23", "url": "https://files.pythonhosted.org/packages/4d/f1/8b4fa5e87b4bdd173876f4fb831dec8f56c976ee7cea4beaf485ffd6be71/kleverklog-0.2.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "6dd682ce861292fce76024dc0a035501", "sha256": "afbd3aa70503f2946d82d7b2227a3c223341053e26cd89cee85b7421c02fe0ca" }, "downloads": -1, "filename": "kleverklog-0.2.0.tar.gz", "has_sig": false, "md5_digest": "6dd682ce861292fce76024dc0a035501", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5617, "upload_time": "2016-03-24T20:02:23", "url": "https://files.pythonhosted.org/packages/4d/f1/8b4fa5e87b4bdd173876f4fb831dec8f56c976ee7cea4beaf485ffd6be71/kleverklog-0.2.0.tar.gz" } ] }