https://github.com/tenable/flask-logging-demo
Demo files for 'The Boring Stuff - Flask Logging' blog post
https://github.com/tenable/flask-logging-demo
Last synced: 10 months ago
JSON representation
Demo files for 'The Boring Stuff - Flask Logging' blog post
- Host: GitHub
- URL: https://github.com/tenable/flask-logging-demo
- Owner: tenable
- Created: 2019-06-07T14:23:08.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2024-07-10T00:19:45.000Z (almost 2 years ago)
- Last Synced: 2025-04-08T03:36:29.382Z (about 1 year ago)
- Language: Python
- Homepage: https://medium.com/tenable-techblog/the-boring-stuff-flask-logging-21c3a5dd0392
- Size: 15.6 KB
- Stars: 35
- Watchers: 2
- Forks: 20
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Flask Logging Demo
Supporting code for the Flask Logging demo:
`git clone .git && cd logging_demo && python3 -m venv venv`
## Single Application File Example:
```
1. source venv/bin/activate
2. cd single_file_app_pattern
3. pip install -r requirements.txt
4. flask run
5. curl http://localhost:5000/
```
## Application Factory Pattern Example:
This pattern supports configuration via .env file as well as ENV_VAR
```
1. source venv/bin/activate
2. cd app_factory_pattern
3. pip install -r requirements.txt
4. flask run
5. curl http://localhost:5000
```