Skip to main content

Log view hits over time so that you know who enter this view and when.

Project description

# View Logger

ViewLogger is a simple Django app Log view hits over time so that you know who enter this view and when.

## Installation

* Install the package
```sh
pip install ViewLogger
```
* Add Application to your project's INSTALLED_APPs
```python
INSTALLED_APPS = (
'....',
'ViewLogger',
)
```
* Add `ViewLogger.middleware.ViewLoggerMiddleware` to your Middleware classes .
```python
MIDDLEWARE_CLASSES = (
'....',
'ViewLogger.middleware.ViewLoggerMiddleware',
)
```

* Run Migrations
```sh
python manage.py migrate ViewLogger
```

#### Notes
* To exempt urls add VIEWLOGGER_EXEMPTED_PATHS to your setting.py
```python
VIEWLOGGER_EXEMPTED_PATHS=["/worker",]
```

* To exempt views add VIEWLOGGER_EXEMPTED_VIEWS to your setting.py
```python
VIEWLOGGER_EXEMPTED_VIEWS=["worker",]
```

* To exempt parameters add VIEWLOGGER_EXEMPTED_PARAMETER to your setting.py
```python
VIEWLOGGER_EXEMPTED_PARAMETER=["password",]
```

* ViewLogger by dafualt log all requests (GET and POST), add VIEWLOGGER_METHODS in your setting.py to log certain method ,
```python
VIEWLOGGER_METHODS=["POST"]
```


Project details


Download files

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

Source Distribution

ViewLogger-1.5.3.tar.gz (7.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ViewLogger-1.5.3-py2-none-any.whl (9.4 kB view details)

Uploaded Python 2

File details

Details for the file ViewLogger-1.5.3.tar.gz.

File metadata

  • Download URL: ViewLogger-1.5.3.tar.gz
  • Upload date:
  • Size: 7.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.0 setuptools/40.5.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/2.7.15rc1

File hashes

Hashes for ViewLogger-1.5.3.tar.gz
Algorithm Hash digest
SHA256 d36b7aa7b069c45bb0382385bb67fee43053d6b879ec7432ec3079eda3491abb
MD5 875f6bb018bb9a421cb0930d01fe413b
BLAKE2b-256 a1ac4a6b7bf4fc96b88e32ca46ada3296c3590b92775d0a5a807c7778ac51711

See more details on using hashes here.

File details

Details for the file ViewLogger-1.5.3-py2-none-any.whl.

File metadata

  • Download URL: ViewLogger-1.5.3-py2-none-any.whl
  • Upload date:
  • Size: 9.4 kB
  • Tags: Python 2
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.0 setuptools/40.5.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/2.7.15rc1

File hashes

Hashes for ViewLogger-1.5.3-py2-none-any.whl
Algorithm Hash digest
SHA256 7864e73becdcd6bdcfde29cec6aee8b1b4d6c5ffdb3174965f952dffe404b177
MD5 164d428e942cce6f612f91cde5745f3b
BLAKE2b-256 7444be45c3ce77965a9eeac69ed7fabcb8f02241348784ce290b620be117d3fc

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page