{ "info": { "author": "arteria GmbH", "author_email": "admin@arteria.ch", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Framework :: Django", "Framework :: Django :: 1.4", "Framework :: Django :: 1.5", "Framework :: Django :: 1.6", "Framework :: Django :: 1.7", "Framework :: Django :: 1.8", "License :: OSI Approved :: MIT License", "Programming Language :: Python", "Programming Language :: Python :: 2", "Programming Language :: Python :: 3" ], "description": "Alogator\n============\n\nAlogator is an aggregated logging actor system.\n\n\n.. contents:: Table of Contents\n\n\nInstallation\n------------\n\nTo get the latest stable release from PyPi\n\n.. code-block:: bash\n\n pip install alogator\n\nTo get the latest commit from GitHub\n\n.. code-block:: bash\n\n pip install -e git+git://github.com/arteria/alogator.git#egg=alogator\n\n.. TODO: Describe further installation steps (edit / remove the examples below):\n\nAdd ``alogator`` to your ``INSTALLED_APPS`` and define a logger\n\n.. code-block:: python\n\n INSTALLED_APPS = (\n ...,\n 'alogator',\n )\n\n LOGFILE_PATH = os.path.join(os.path.join(BASE_DIR, 'logs/'), \"alogator.log\")\n\n LOGGING = {\n 'version': 1,\n 'disable_existing_loggers': False,\n 'filters': {\n 'require_debug_false': {\n '()': 'django.utils.log.RequireDebugFalse'\n }\n },\n 'formatters': {\n 'standard': {\n 'format': \"[%(asctime)s] %(levelname)s [%(name)s:%(lineno)s] %(message)s\",\n 'datefmt': \"%d/%b/%Y %H:%M:%S\"\n },\n },\n 'handlers': {\n 'logfile': {\n 'level': 'DEBUG',\n 'class': 'logging.handlers.RotatingFileHandler',\n 'filename': LOGFILE_PATH,\n 'maxBytes': 1000000,\n 'backupCount': 0,\n 'formatter': 'standard',\n }\n },\n 'loggers': {\n 'alogator': {\n 'handlers': ['logfile'],\n 'level': 'DEBUG',\n },\n }\n }\n\n\n\n\nDon't forget to create the tables for your database\n\n.. code-block:: bash\n\n ./manage.py syncdb alogator\n # python manage.py migrate\n\n\nUsage\n-----\n\nSetup your logfiles, search patterns and actors in the admin backend.\n\nTo run one (scan all logfiles for patterns) just call the ``scanlogfiles`` management command.\n\n.. code-block:: bash\n \n python manage.py scanlogfiles\n\nYou can use ``alogator_cli`` to check the log files in a project. Simple add paths to settings files as arguments. Be aware that you have to run the project, so you need to first activate your virtualenv if you have one.\n\n.. code-block:: bash\n\n # if you have a virtualenv\n . /path/to/env/bin/activate\n\n alogator_cli /path/to/project/settings.py\n\nTo run this continously you could setup a cronjob. For example, to run this every other minute use\n\n.. code-block:: bash\n\n crontab -e\n \nThan add \n\n.. code-block:: bash\n\n */2 * * * * /path/to/your/manage.py scanlogfiles\n \nYou may have to activate your virtualenv depending on your setup.\n\n\n\nTODO\n----\n\n* Customizable temporary working dir instead of /tmp\n* Customizable subject, eg. [Alogator] (to filter inbox)\n* Add \"To mute this actor, visit...\" in message/email.\n\nHistroy\n-------\n\nPlease refer to CHANGELOG.txt\n\n\nContribute\n----------\n\nIf you want to contribute to this project, simply send us a pull request. Thanks. :)", "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/arteria/alogator", "keywords": "django,app,logging,event,action,aggregator,alogator", "license": "The MIT License", "maintainer": null, "maintainer_email": null, "name": "alogator", "package_url": "https://pypi.org/project/alogator/", "platform": "OS Independent", "project_url": "https://pypi.org/project/alogator/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/arteria/alogator" }, "release_url": "https://pypi.org/project/alogator/0.2.0/", "requires_dist": null, "requires_python": null, "summary": "Alogator is an aggregated logging actor system.", "version": "0.2.0" }, "last_serial": 1557965, "releases": { "0.2.0": [ { "comment_text": "", "digests": { "md5": "4004df59835a81f30c64c781c26fcd7e", "sha256": "637feed01c796921a1a62dd67bd47ab046f4ddd55ac6206ccbbe58ac85365f00" }, "downloads": -1, "filename": "alogator-0.2.0.tar.gz", "has_sig": false, "md5_digest": "4004df59835a81f30c64c781c26fcd7e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10726, "upload_time": "2015-05-22T13:41:42", "url": "https://files.pythonhosted.org/packages/ea/89/d4150b75dc6ed29933906508985dfd702a8ee91e8f00d62bdd0758c11b2b/alogator-0.2.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "4004df59835a81f30c64c781c26fcd7e", "sha256": "637feed01c796921a1a62dd67bd47ab046f4ddd55ac6206ccbbe58ac85365f00" }, "downloads": -1, "filename": "alogator-0.2.0.tar.gz", "has_sig": false, "md5_digest": "4004df59835a81f30c64c781c26fcd7e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10726, "upload_time": "2015-05-22T13:41:42", "url": "https://files.pythonhosted.org/packages/ea/89/d4150b75dc6ed29933906508985dfd702a8ee91e8f00d62bdd0758c11b2b/alogator-0.2.0.tar.gz" } ] }