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
Release files for flask_trace 0.0.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| flask_trace-0.0.4.tar.gz | 2.8 kB | Details |
Release files / flask_trace-0.0.4.tar.gz
| Download URL | flask_trace-0.0.4.tar.gz |
|---|---|
| Size | 2.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a77cc5025e0f429dd63cc29ff136badc450b385417e80572928651a8084a4f36
|
|
BLAKE2b-256 checksum How to use checksums |
78ebfd4c8c8fd8a4ce0ee31f241a1d99bbb4ad25858abb1154b92137d217a3a2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |