Skip to main content

Flask logger decorator

Project description

DDD Api Gateway Framework

Build Status Pypi Status Coveralls Status

Installation

From source code:

python setup.py install

From pypi:

pip install flask-logger-decorator

Usage

from flask_logger_decorator.logger_extension import LoggerExtension


logger = LoggerExtension()
logger.init_app(app)

#examples
2019-08-28T10:33:34 flask-request-logger      DEBUG: trace_uuid=befc1448-8f6d-4d1e-88ca-d3e04cd16f8e endpoint=/api/v1/user method=GET  query_args: post_values:
2019-08-28T10:33:34 flask-request-logger      DEBUG: trace_uuid=befc1448-8f6d-4d1e-88ca-d3e04cd16f8e ip=127.0.0.1 method=GET  path:/api/v1/user status_code:401

License

This software is licensed under the MIT license

See License file

Changelog

0.1.1

  • Update readme with usage

0.1.0

  • Release Alpha version with basic log for all requests

Project details


Download files

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

Files for flask-logger-decorator, version 0.1.1
Filename, size File type Python version Upload date Hashes
Filename, size flask-logger-decorator-0.1.1.tar.gz (5.8 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page