Metadata-Version: 1.1
Name: ViewLogger
Version: 1.5.1
Summary: Log view hits over time so that you know who enter this view and when.
Home-page: https://github.com/mahmoodnasr/ViewLogger/
Author: Mahmood Nasr
Author-email: mahmood.nasr.fcis@gmail.com
License: MIT
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"]
        ```   
        
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 2.7
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
