Save rlog's Pub/Sub Log to Disk
Project description
Save rlog’s Pub/Sub Log to Disk
Installation
pip install django-rlog
Usage
Start rlog:
python manage.py rlog [channel] [filename] [handler] [when] [maxBytes] [backupCount] [debug]
Start rlistlog:
python manage.py rlistlog [key] [timeout] [filename] [handler] [when] [maxBytes] [backupCount] [debug]
Stop rlog:
python manage.py rstop [channel]
Stop rlistlog:
python manage.py rliststop [key]
Redis Connection
def get_connection(): for key in ['REDIS_CONN', 'REDIS_CLIENT', 'REDIS_CACHE']: if hasattr(settings, key): return getattr(settings, key)
Get Redis Connection from settings
Redis Connection in settings refer to [Django Cook Book](https://github.com/xxx-cook-book/django-cook-book/tree/master/Caches/Redis)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
django-rlog-1.0.7.tar.gz
(3.5 kB
view hashes)
Built Distribution
django_rlog-1.0.7-py2.7.egg
(13.2 kB
view hashes)