Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/canassa/flask-trace
A Simple logging decorator for Flask applications
https://github.com/canassa/flask-trace
Last synced: 14 days ago
JSON representation
A Simple logging decorator for Flask applications
- Host: GitHub
- URL: https://github.com/canassa/flask-trace
- Owner: canassa
- Created: 2014-09-25T15:09:41.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2015-09-14T07:30:48.000Z (about 9 years ago)
- Last Synced: 2024-04-24T15:45:03.719Z (6 months ago)
- Language: Python
- Size: 167 KB
- Stars: 12
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
Awesome Lists containing this project
- starred-awesome - flask-trace - A Simple logging decorator for Flask applications (Python)
README
Flask Trace
===========A Simple logging decorator for Flask applications
Usage
-----Simply import the trace decorator and apply it to any function you want to log.
.. code-block:: python
from flask_trace import trace
@trace
def my_awesome_function(arg1, arg2):
passNow, 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