oops datedir到amqp repubisher。

oops_datedir2amqp的Python项目详细描述


Copyright (c) 2011, Canonical Ltd

This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details.

You should have received a copy of the GNU Affero General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.

oops_datedir2amqp包提供了一个脚本,该脚本将重新传输oops 报告(http://pypi.python.org/pypi/oops)存储在AMQP上的DateDir回购中, 正在清理回购协议。

依赖关系

  • Python2.6+
  • oops_datedir_回购
  • 哎呀,AMQP

用法

使用buildout构建包(请参见开发中)。

运行脚本:

$ bin/datedir2amqp --host XX --username XX --password XX --vhost XX \
  --exchange XX --repo XX

请注意,回购协议应该与您提供给您的 在创建oopse的任何进程中使用datedirrepo。

此设置的常见用途是作为回退:在应用程序报表中 直接使用amqp,将datedirrepo配置为fallback,然后使用datedir2amqp 获取和重新配置在AMQP期间生成的任何OOPS报告 服务器不可用。

安装

在具有所有可用依赖项的环境中运行setup.py,或者 将工作目录添加到pythonpath。

开发

上游开发发生在 https://launchpad.net/python-oops-datedir2amqp。设置工作区的步骤 开发,如果依赖项不是立即可用的,则可以使用 /bootstrap.py创建bin/buildout,然后bin/py获取python解释器 具有可用的依赖项。

要使用您选择的运行程序运行测试,测试套件是 oops_datedir2amqp.tests.test_套件。

例如:

$ bin/py -m testtools.run oops_datedir2amqp.tests.test_suite

或者,您可以使用testrepository:

$ testr init
$ testr run

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
java方面在春季没有被调用   java什么是JPA悲观显式@Lock用例(而仅仅@Transactional不是选项)?   java如何使用jackson序列化通用对象   java数据库只返回最后一个db项   Java:Generics:尝试在参数中包含genrics的接口中实现定义的方法时发生编译错误   树映射中的java树映射,无法从第二个映射中获取值   macos Java Mac OS从finder启动时,如何让XstartOnFirstThread实现?   在Java或C中附加两个十六进制长值   java Android应用程序内置购买   java如何获取字符串数组中特定字符串的所有索引?   爪哇猪拉丁语翻译移动辅音群   ArrayList的java对象导致NullPointException