Metadata-Version: 1.1
Name: ViewLogger
Version: 0.0.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
        
        * Clone the package
        
        * 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',
            )
        ```   
        
        * Add `django.contrib.sessions.serializers.PickleSerializer` to your SESSION_SERIALIZER in setting.py .
        ```python
        SESSION_SERIALIZER = 'django.contrib.sessions.serializers.PickleSerializer'
        ```   
        
        * 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",)
        ```   
        
        * ViewLogger by dafualt log all requests (GET and POST), add VIEWLOGGER_EXEMPTED_METHODS in your setting.py to log certain method , 
        ```python
        VIEWLOGGER_EXEMPTED_METHODS=("POST",)
        ```   
        
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 2.7
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
