{ "info": { "author": "Ingeniweb", "author_email": "support@ingeniweb.com", "bugtrack_url": null, "classifiers": [ "Framework :: Zope2", "Programming Language :: Python", "Topic :: System :: Logging" ], "description": "###########\nrotatezlogs\n###########\n\nBy `Ingeniweb `_.\n\nAbout\n#####\n\nThis product provides two additional logger handlers to the standard\nones (see the doc in `zope.conf`) that rotate the log files.\n\nIt is not always possible to rotate Zope logs using system wide\nservices. This utility enables to rotate automatically Zope logs (with\nor without zipping) using the features of the \"logging\" standard\nmodule.\n\nDon't look for new objects in the ZMI factory. All is configured in\n`zope.conf` (see `Installation`_ below.)\n\nThis is mainly useful for Windows : rotating logs from an external\nutility while Zope is up is not possible.\n\nNote that the log rotation rules is based on the actual size of a log\nfile, and **not** on time periods (cron like).\n\nRequirements\n############\n\nTested with Zope 2.8, Zope 2.9, Zope 2.10, Windows and Unix.\n\n`rotatezlogs` does not require additional product.\n\nWill not work with Zope 2.7.x. We should completely rework\n`component.xml` for this.\n\nInstallation\n############\n\n::\n\n $ easy_install [options] iw.rotatezlogs\n\n\nConfigure the rotating file logger handler\n##########################################\n\nIn any logger directive of `zope.conf`, change the handler as in this\nexample for the .\n\n::\n\n %import iw.rotatezlogs\n\n \n # Usual options, see the doc in zope.conf\n level info\n \n # Required parameters\n # -------------------\n path $INSTANCE/log/event.log\n # We'll get up to 6 Mb of logs\n max-bytes 1MB\n backup-count 5\n\n # Optional parameters\n # -------------------\n # compression zip\n # format ------\\n%(asctime)s %(levelname)s %(name)s %(message)s\n \n \n\nThis works for other logs too (access, trace, zeo, ...).\n\nWhen the size is about to be exceeded, the file is closed and a new\nfile is silently opened for output. Rollover occurs whenever the\ncurrent log file is nearly `max-bytes` in length; if `max-bytes` is\nzero, rollover never occurs. If `backup-count` is non-zero, the system\nwill save old log files by appending the extensions \".1\", \".2\" etc.,\nto the filename. For example, with a `backup-count` of 5 and a base\nfile name of `event.log`, you would get `event.log`, `event.log.1`,\n`event.log.2`, up to `event.log.5`. The file being written to is\nalways `event.log`. When this file is filled, it is closed and renamed\nto `event.log.1`, and if files `event.log.1`, `event.log.2`,\netc. exist, then they are renamed to `event.log.2`, `event.log.3`\netc. respectively.\n\nIf you want compressed rotated log files, you can add the optional\n`compression` key parameter to the configuration. The value for `compression`\ncan be:\n\n* `none` : the default, no compression is processed\n* `zip` : rotated files are zipped to `xxx.log.1.zip` etc.\n* `gzip` : rotated files are gzipped to `xxx.log.1.gz` etc.\n* `bzip2` : rotated files are bzipped2 to `xxx.log.1.bz2` etc.\n\nNote that some systems or Python installations come with no bzip2\nsupport. In such case, we use `none` compression as fallback. You can\ntest the bzip2 support like this::\n\n $ python\n ...\n >>> import bz2\n\nInstall and configure a zope instance with buildout\n###################################################\n\nThe easiest way. Edit your `buildout.cfg`::\n\n [instance]\n ...\n eggs =\n ...\n iw.rotatezlogs\n ...\n\n event-log-custom =\n %import iw.rotatezlogs\n \n path ${buildout:directory}/var/log/instance.log\n max-bytes 1MB\n backup-count 5\n \n\n access-log-custom =\n %import iw.rotatezlogs\n \n path ${buildout:directory}/var/log/instance-Z2.log\n max-bytes 1MB\n backup-count 5\n \n\nSee previous section for detailed explanations.\n\nCopyright and license\n#####################\n\nCopyright (c) 2006-2008 Ingeniweb SAS\n\nThis software is subject to the provisions of the GNU General Public License,\nVersion 2.0 (GPL). A copy of the GPL should accompany this distribution.\nTHIS SOFTWARE IS PROVIDED \"AS IS\" AND ANY AND ALL EXPRESS OR IMPLIED\nWARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED\nWARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS\nFOR A PARTICULAR PURPOSE\n\nSee the `.../rotatezlogs/LICENSE` file that comes with this product.\n\nTesting\n#######\n\nPlease read the `.../rotatezlogs/tests/README.txt`\n\nDownload\n########\n\nStay in tune with the latest releases of `rotatezlogs`...\n\nSubversion reposo:\n\n https://ingeniweb.svn.sourceforge.net/svnroot/ingeniweb/iw.rotatezlogs/\n\nReleases:\n\n http://pypi.python.org/pypi/iw.rotatezlogs\n\nSupport\n#######\n\n`Mail to Ingeniweb support `_\n\n`Donations are welcome for new features\n`_\n\nCredits\n#######\n\n`The Ingeniweb team `_ (c) 2006-2008\n\n* Main developer: `Gilles Lenfant `_\n* Eggification: `Tarek Ziade `_\n\nBased on an idea by Mark Hammond.", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://ingeniweb.svn.sourceforge.net/svnroot/ingeniweb/iw.rotatezlogs", "keywords": "", "license": "GPL", "maintainer": null, "maintainer_email": null, "name": "iw.rotatezlogs", "package_url": "https://pypi.org/project/iw.rotatezlogs/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/iw.rotatezlogs/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://ingeniweb.svn.sourceforge.net/svnroot/ingeniweb/iw.rotatezlogs" }, "release_url": "https://pypi.org/project/iw.rotatezlogs/0.1.2/", "requires_dist": null, "requires_python": null, "summary": "Rotates Zope logs", "version": "0.1.2" }, "last_serial": 755430, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "aaa8b9d9a6900c3c6d35ffb86966e34e", "sha256": "1b250908605c2022a5c13113e10d4fe39c95fda24fd8a58f9e3a707478eb0ff9" }, "downloads": -1, "filename": "iw.rotatezlogs-0.1.0-py2.4.egg", "has_sig": false, "md5_digest": "aaa8b9d9a6900c3c6d35ffb86966e34e", "packagetype": "bdist_egg", "python_version": "2.4", "requires_python": null, "size": 66295, "upload_time": "2008-02-06T15:54:39", "url": "https://files.pythonhosted.org/packages/46/17/d5dc44c9e5b844cc35b8d04c6e30ac64e40e8d4bcb8a12e9aaf436960ac1/iw.rotatezlogs-0.1.0-py2.4.egg" }, { "comment_text": "", "digests": { "md5": "d7a150b6daf6770b1c2e780f450ed257", "sha256": "0ce949e3a509814e43d3c9909278c0ac86ec925de0d1a06a4e3130996d5357ad" }, "downloads": -1, "filename": "iw.rotatezlogs-0.1.0.tar.gz", "has_sig": false, "md5_digest": "d7a150b6daf6770b1c2e780f450ed257", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 53824, "upload_time": "2008-02-06T15:54:36", "url": "https://files.pythonhosted.org/packages/a5/d4/0dced5ee57f77705eed953bcf7aba4714922be84d3e802ac65113c8610be/iw.rotatezlogs-0.1.0.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "dd36af87915cef189737427132287c89", "sha256": "5a761df92b3cc2c0ee320d480b4f0d06a3a7535ddb5f6a236ee5311c49b427f2" }, "downloads": -1, "filename": "iw.rotatezlogs-0.1.1-py2.4.egg", "has_sig": false, "md5_digest": "dd36af87915cef189737427132287c89", "packagetype": "bdist_egg", "python_version": "2.4", "requires_python": null, "size": 67298, "upload_time": "2008-06-07T09:26:48", "url": "https://files.pythonhosted.org/packages/92/cc/c1e70a9bd5bd6247b08025bf1453d2e3fbe3ba6a7cbe0122d8f879d78529/iw.rotatezlogs-0.1.1-py2.4.egg" }, { "comment_text": "", "digests": { "md5": "ddd8ca4da14ba7fbc504e47925cfd3eb", "sha256": "18bfdcef979b37c46dc4ad6c77802f5425efbdc1542dacb842c0aa978dc2322e" }, "downloads": -1, "filename": "iw.rotatezlogs-0.1.1.tar.gz", "has_sig": false, "md5_digest": "ddd8ca4da14ba7fbc504e47925cfd3eb", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 55012, "upload_time": "2008-06-07T09:26:47", "url": "https://files.pythonhosted.org/packages/84/47/78f2249808456645173b317a06faf34fd61d2267dd47091d5418d93d9320/iw.rotatezlogs-0.1.1.tar.gz" } ], "0.1.2": [ { "comment_text": "", "digests": { "md5": "5bbf8f78e585ec5428e5fcb52b6036e0", "sha256": "a3ca317d94b8a614aeb5270cabd8beeea928669d942c0aa34d0c23888cbc9fb3" }, "downloads": -1, "filename": "iw.rotatezlogs-0.1.2-py2.4.egg", "has_sig": false, "md5_digest": "5bbf8f78e585ec5428e5fcb52b6036e0", "packagetype": "bdist_egg", "python_version": "2.4", "requires_python": null, "size": 67238, "upload_time": "2008-07-29T17:25:36", "url": "https://files.pythonhosted.org/packages/f5/3d/bc0b1cc89c1beb3c31b7f2ed2b885b57be1e88cf4c7350ff8fbd5be4a58d/iw.rotatezlogs-0.1.2-py2.4.egg" }, { "comment_text": "", "digests": { "md5": "7d6875ade5a65249f3a8239f2b697bdf", "sha256": "1d5fc3f964d80c426f1e8660d5e8192b3eca63169de6e8b3d0b4257b22b7390f" }, "downloads": -1, "filename": "iw.rotatezlogs-0.1.2.tar.gz", "has_sig": false, "md5_digest": "7d6875ade5a65249f3a8239f2b697bdf", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 58085, "upload_time": "2008-07-29T17:25:31", "url": "https://files.pythonhosted.org/packages/0d/cd/051dcc3a109c6ceef739462df8f89bfdfb0cf03a0b25a4c917ae0627b0b8/iw.rotatezlogs-0.1.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "5bbf8f78e585ec5428e5fcb52b6036e0", "sha256": "a3ca317d94b8a614aeb5270cabd8beeea928669d942c0aa34d0c23888cbc9fb3" }, "downloads": -1, "filename": "iw.rotatezlogs-0.1.2-py2.4.egg", "has_sig": false, "md5_digest": "5bbf8f78e585ec5428e5fcb52b6036e0", "packagetype": "bdist_egg", "python_version": "2.4", "requires_python": null, "size": 67238, "upload_time": "2008-07-29T17:25:36", "url": "https://files.pythonhosted.org/packages/f5/3d/bc0b1cc89c1beb3c31b7f2ed2b885b57be1e88cf4c7350ff8fbd5be4a58d/iw.rotatezlogs-0.1.2-py2.4.egg" }, { "comment_text": "", "digests": { "md5": "7d6875ade5a65249f3a8239f2b697bdf", "sha256": "1d5fc3f964d80c426f1e8660d5e8192b3eca63169de6e8b3d0b4257b22b7390f" }, "downloads": -1, "filename": "iw.rotatezlogs-0.1.2.tar.gz", "has_sig": false, "md5_digest": "7d6875ade5a65249f3a8239f2b697bdf", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 58085, "upload_time": "2008-07-29T17:25:31", "url": "https://files.pythonhosted.org/packages/0d/cd/051dcc3a109c6ceef739462df8f89bfdfb0cf03a0b25a4c917ae0627b0b8/iw.rotatezlogs-0.1.2.tar.gz" } ] }