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.

Source Distribution

flask-logger-decorator-0.1.1.tar.gz (5.8 kB view details)

Uploaded Source

File details

Details for the file flask-logger-decorator-0.1.1.tar.gz.

File metadata

  • Download URL: flask-logger-decorator-0.1.1.tar.gz
  • Upload date:
  • Size: 5.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.6.7

File hashes

Hashes for flask-logger-decorator-0.1.1.tar.gz
Algorithm Hash digest
SHA256 3a529546cbfbaf3547f89a0925c93c4d08165c8dd825ef1eaba5ac52de275129
MD5 166b45758c3062505808cc19f15b2680
BLAKE2b-256 f9f88f8ff3e2961ca2dc6e8a6174f45d831e91fcd1800e6f5b460e0a06bfed2d

See more details on using hashes here.

Supported by

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