Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

You can check the python-time, sql-time and query-count for each request for Django

Project Description

Getting Started

Django Action is can be check the python-time, sql-time and query-count for each requests for the Django Framework. Result outputs the log to file, console or fluentd.

Requirements

Django Actionlog requires Django 1.6 or later

fluent-logger 0.4.1 or later

Getting It

You can get Django Actionlog by using pip or easy_install:

$ pip install django-actionlog
or
$ easy_install django-actionlog

If you want to install it from source, grab the git repository from GitHub and run setup.py:

$ git clone git://github.com/fujimisakari/django-actionlog.git
$ cd django-actionlog
$ python setup.py install

Installing It

To enable django-actionlog in your project you need to add it to MIDDLEWARE_CLASSES and ACTION_LOG_SETTING in your projects settings.py file:

MIDDLEWARE = [
    ...
    'django_actionlog.middleware.ActionLogMiddleware',
    ...
]

# Action Log
ACTION_LOG_SETTING = {'handler_type': 'stdout'}

Using It

Case of output runserver console

ACTION_LOG_SETTING = {'handler_type': 'stdout'}

Case of output file

# default logfile: `/tmp/django_action.log`
ACTION_LOG_SETTING = {'handler_type': 'file', 'logfile': '/tmp/my_action.log'}

Case of output fluentd

# default host: `localhost`
# default port: `24224`
# default tag_name: `django.actionlog`
ACTION_LOG_SETTING = {'handler_type': 'fluentd', 'host': 'example.com', 'tag_name': 'my_service.foo'}

Case of want to output custom actionlog

from django-actionlog import actionlog

...
actionlog.log({'foo': 'bar', 'fizz': 'buzz'...})
...
Release History

Release History

This version
History Node

0.9.12

History Node

0.9.11

History Node

0.9.10

History Node

0.9.9

History Node

0.9.8

History Node

0.9.7

History Node

0.9.6

History Node

0.9.5

History Node

0.9.4

History Node

0.9.3

History Node

0.9.2

History Node

0.9.1

History Node

0.9.0

Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
django-actionlog-0.9.12.macosx-10.11-x86_64.exe (79.1 kB) Copy SHA256 Checksum SHA256 any Windows Installer Jan 21, 2017
django-actionlog-0.9.12.tar.gz (6.7 kB) Copy SHA256 Checksum SHA256 Source Jan 21, 2017

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting