Log trace decorator function for Flask
Project description
A Simple logging decorator for Flask applications
Usage
Simply import the trace decorator and apply it to any function you want to log.
from flask_trace import trace
@trace
def my_awesome_function(arg1, arg2):
pass
Now, any call to the my_awesome_function will be logged like this:
TRACE: trace_uuid=44f64962-3468-4273-bcd7-1c2067faacdf func_name=my_awesome_function arg1=1 arg2=2
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_trace-0.0.3.tar.gz
(2.8 kB
view hashes)
Built Distribution
Close
Hashes for flask_trace-0.0.3-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 522c465b83e90b70f7197377ed09b62a33a453e6c869f981fdc04286766badf5 |
|
MD5 | 4991fc4c9c18956994bab3060d082e3f |
|
BLAKE2b-256 | 44b7287906602cfa3ff5d1a620f07f0f180aafe6f0eb7aa5d5611daab132859d |