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.4.tar.gz
(2.8 kB
view details)
File details
Details for the file flask_trace-0.0.4.tar.gz
.
File metadata
- Download URL: flask_trace-0.0.4.tar.gz
- Upload date:
- Size: 2.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a77cc5025e0f429dd63cc29ff136badc450b385417e80572928651a8084a4f36 |
|
MD5 | 4a7efc46fb223e052dd8d40c15bbddd3 |
|
BLAKE2b-256 | 78ebfd4c8c8fd8a4ce0ee31f241a1d99bbb4ad25858abb1154b92137d217a3a2 |