{ "info": { "author": "Peter Hillerstr\u00f6m", "author_email": "peter.hillerstrom@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Environment :: Console", "Intended Audience :: Developers", "Intended Audience :: End Users/Desktop", "Intended Audience :: System Administrators", "License :: OSI Approved :: BSD License", "Operating System :: MacOS :: MacOS X", "Operating System :: POSIX", "Operating System :: Unix", "Programming Language :: Python", "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Topic :: Internet :: Log Analysis", "Topic :: Software Development :: Bug Tracking", "Topic :: Software Development :: Quality Assurance", "Topic :: Software Development :: Testing", "Topic :: System :: Logging", "Topic :: System :: Monitoring", "Topic :: System :: Systems Administration", "Topic :: Text Processing :: Filters", "Topic :: Utilities" ], "description": "Prism \u2014 colourful logs\n======================\n\nA command line log colouriser utility.\n\n\nInstallation\n------------\n\nFrom Python package index (Pypi_):\n\n (sudo) pip install logprism\n\nor from Github_:\n\n (sudo) pip install watchdog # optional\n\n git clone https://github.com/peterhil/prism.git\n\n cd prism\n\n (sudo) python setyp.py install\n\n\nDependencies\n------------\n\nAll dependencies can be installed with pip_, usually by:\n\n pip install some-package\n\nRequired (automatically handled by pip):\n\n- ordereddict (if using Python 2.6)\n\nOptional (install manually with pip):\n\n- watchdog (watch files and directories with the -w option. Recommended for Python 2.x only \u2013 doesn\u2019t work with Python 3)\n\nDevelopers only:\n\n- pytest (test framework)\n- tox (continuous integration)\n\n\nUsage examples\n--------------\n\nColourise stdin:\n\n tail -f /opt/local/var/log/couchdb/couch.log | prism\n\n\nGrep some logs for messages with levels:\n\n prism -g /var/log/\\*.log\n\n\nCombine with grep command to find just specific levels:\n\n grep -iE '(warn|error)' /var/log/\\*.log | prism -g\n\n\nMatch multiple log levels per line:\n\n prism -m /var/log/apache2/vhost\\*log\n\n prism -m <(echo \"Dribble me a debug or info lest I notice no create nor alter nor drop of your critical tables.\")\n\n\nWatch for a whole directory of logs for changes (and new files):\n\n prism -m -w /opt/local/var/log/nginx/\n\n\nSome programs output normally to stderr, grab that output for prism:\n\n python run.py 2>&1 | prism\n\n\n\nTest\n----\n\nRun unit tests:\n\n python setup.py test\n\nRun continuous integration with tox (from an activated virtualenv, use tox -r to recreate CI envs):\n\n tox\n\n\nTodo\n----\n\n- Show some tail lines when using -w: Make a line cache (count total lines with `wc -l`) from the end of the file using some blocksize.\n\n a) Can be done with readlines() first. Then seek and read blocksize bytes from len(file)-blocksize and update cache.\n b) Later enable ncurses scrolling for earlier lines?\n c) Show n lines by default (a screenful / filecount?)\n\n\n.. _Github: https://github.com/peterhil/prism/\n.. _Pypi: http://pypi.python.org/pypi/logprism\n.. _pip: http://www.pip-installer.org/", "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/peterhil/prism", "keywords": null, "license": "BSD License", "maintainer": null, "maintainer_email": null, "name": "logprism", "package_url": "https://pypi.org/project/logprism/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/logprism/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/peterhil/prism" }, "release_url": "https://pypi.org/project/logprism/0.1.2/", "requires_dist": null, "requires_python": null, "summary": "Prism \u2013 Colourise log files (with ANSI characters codes)", "version": "0.1.2" }, "last_serial": 794335, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "59388f187699ea347635da6b47f8a767", "sha256": "e23b80e3e861774016048787c781add41c2457366e5754e36af99049727deb17" }, "downloads": -1, "filename": "logprism-0.1.0.tar.gz", "has_sig": false, "md5_digest": "59388f187699ea347635da6b47f8a767", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7220, "upload_time": "2012-09-22T23:35:51", "url": "https://files.pythonhosted.org/packages/ca/fb/05ffb117dc0e00359496e818fe5b0d58aee272598f75cdbe953ed2ba91dd/logprism-0.1.0.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "8c26790eff85df1d8650757ab91c4d9b", "sha256": "226ab9622e2d64d01ea670320589c3a135959ad2185d6dbe4e4aba399742384e" }, "downloads": -1, "filename": "logprism-0.1.1.tar.gz", "has_sig": false, "md5_digest": "8c26790eff85df1d8650757ab91c4d9b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7295, "upload_time": "2012-09-23T12:07:54", "url": "https://files.pythonhosted.org/packages/69/d4/01e505f80b838400117728ed325615a4f0e6298fa2d5506f5cc1fd2ebcf7/logprism-0.1.1.tar.gz" } ], "0.1.2": [ { "comment_text": "", "digests": { "md5": "2c7bc46577793b8277d21fdc04a99af5", "sha256": "db3a2db40d7236167fdd25d259cc813fa69320ac2ab6cc6c760800e5957fe3b1" }, "downloads": -1, "filename": "logprism-0.1.2.tar.gz", "has_sig": false, "md5_digest": "2c7bc46577793b8277d21fdc04a99af5", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8139, "upload_time": "2013-04-01T11:15:06", "url": "https://files.pythonhosted.org/packages/19/f5/6484fda130fb4f722b72c13c737db3343360f4e8a849411a215752cbdadf/logprism-0.1.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "2c7bc46577793b8277d21fdc04a99af5", "sha256": "db3a2db40d7236167fdd25d259cc813fa69320ac2ab6cc6c760800e5957fe3b1" }, "downloads": -1, "filename": "logprism-0.1.2.tar.gz", "has_sig": false, "md5_digest": "2c7bc46577793b8277d21fdc04a99af5", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8139, "upload_time": "2013-04-01T11:15:06", "url": "https://files.pythonhosted.org/packages/19/f5/6484fda130fb4f722b72c13c737db3343360f4e8a849411a215752cbdadf/logprism-0.1.2.tar.gz" } ] }