跳转到主要内容

将rlog的Pub/Sub日志保存到磁盘

项目描述

将rlog的Pub/Sub日志保存到磁盘

安装

pip install django-rlog

使用

启动rlog

python manage.py rlog [channel] [filename] [handler] [when] [maxBytes] [backupCount] [debug]

启动rlistlog

python manage.py rlistlog [key] [timeout] [filename] [handler] [when] [maxBytes] [backupCount] [debug]

停止rlog

python manage.py rstop [channel]

停止rlistlog

python manage.py rliststop [key]

Redis连接

def get_connection():
    for key in ['REDIS_CONN', 'REDIS_CLIENT', 'REDIS_CACHE']:
        if hasattr(settings, key):
            return getattr(settings, key)

项目详情


下载文件

下载适合您平台的项目文件。如果您不确定选择哪个,请了解有关安装包的更多信息。

源代码分布

django-rlog-1.0.7.tar.gz (3.5 kB 查看哈希值)

上传时间:

构建分布

django_rlog-1.0.7-py2.7.egg (13.2 kB 查看哈希值)

上传时间:

由以下支持