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.2.tar.gz
(2.7 kB
view hashes)
Built Distribution
Close
Hashes for flask_trace-0.0.2-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8d16cc63bc11f991abf2c820af62d6803e0f8719de465cda5a4cc8f25cab4b67 |
|
MD5 | 600c107a2afe14579b9044dd9d412d62 |
|
BLAKE2b-256 | 1948f2168bc04f213eca5f236bfa8fbc52ea6fe9f8b7a18de1d52d4a910febaa |