Skip to main content

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)

Source distribution for flask_trace 0.0.4
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

Release history Release notifications | RSS feed

This release

0.0.4 This release

1 release file

0.0.3

2 release files

0.0.2

2 release files

0.0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page