Metadata-Version: 1.1
Name: sanic-apache-accesslogs
Version: 0.2.1
Summary: Apache Access Logs for Sanic
Home-page: https://github.com/arnulfojr/sanic_apache_accesslogs
Author: Arnulfo Solis
Author-email: arnulfojr94@gmail.com
License: UNKNOWN
Download-URL: https://github.com/arnulfojr/sanic_apache_accesslogs/archive/0.2.1.tar.gz
Description: # Sanic Apache Access Logs
        
        Sanic Plugin to log access logs in common or combined format
        
        ## How to use
        
        
        ```python
        from sanic import Sanic
        from sanic.response import json
        from sanic_apache_accesslogs import AccessLogPlugin
        
        
        app = Sanic(__name__, configure_logging=False)
        
        AccessLogPlugin(app)
        
        
        @app.route('/', methods=['GET'])
        async def hello(request):
            return json({'hello': 'world'})
        
        
        if __name__ == '__main__':
            app.run(host='localhost', port=5000, access_log=False)
        ```
        
        
        ## Common or Combined?
        
        
        For choosing the format set the environment variable `ACCESSLOG_USE_COMBINED` to choose combined over common.
        
        
        ## TODO(s)
        
        * Use Sanic configuration context to choose between the logging format.
        
        
        ## Contact
        
        Arnulfo Solis
        arnulfojr94@gmail.com
        
Keywords: accesslog,access,logs,sanic,plugin
Platform: any
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: Implementation :: CPython
Classifier: Programming Language :: Python :: Implementation :: PyPy
Classifier: Topic :: Internet :: WWW/HTTP :: Dynamic Content
Classifier: Topic :: Software Development :: Libraries :: Python Modules
