
Security News
Browserslist-rs Gets Major Refactor, Cutting Binary Size by Over 1MB
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.
You can check the python-time, sql-time and query-count for each request for Django
.. image:: https://img.shields.io/pypi/v/django-actionlog.svg :target: https://pypi.python.org/pypi/django-actionlog/ :alt: Latest PyPI version
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.
.. image:: https://raw.github.com/fujimisakari/django-actionlog/master/example/django-actionlog.png
Django Actionlog requires Django 1.6 or later
fluent-logger 0.4.1 or later
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
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'}
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.output({'foo': 'bar', 'fizz': 'buzz'...})
...
FAQs
You can check the python-time, sql-time and query-count for each request for Django
We found that django-actionlog demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.
Research
Security News
Eight new malicious Firefox extensions impersonate games, steal OAuth tokens, hijack sessions, and exploit browser permissions to spy on users.
Security News
The official Go SDK for the Model Context Protocol is in development, with a stable, production-ready release expected by August 2025.