https://github.com/slimdestro/logger
Generic JSON as Log for Flask
https://github.com/slimdestro/logger
flask jsonal logfile logger python
Last synced: 3 months ago
JSON representation
Generic JSON as Log for Flask
- Host: GitHub
- URL: https://github.com/slimdestro/logger
- Owner: slimdestro
- Created: 2023-11-07T01:54:38.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-12-19T15:38:03.000Z (over 2 years ago)
- Last Synced: 2023-12-19T18:59:34.933Z (over 2 years ago)
- Topics: flask, jsonal, logfile, logger, python
- Language: Python
- Homepage:
- Size: 2.93 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Python JSON based Logger
## Identifier
Each apllication(web/system/lambda/etc..) will need to have a Unique category as Identifier.
## Configuration
Just import `JSONAL` from this file.
```sh
app = Flask(__name__)
error_logger = JSONAL(app)
#call it like this in:
error_logger.log_erro(errorvariable)
```
## Author
[slimdestro(Mukul Kumar)](https://linktr.ee/slimdestro)