A database log tool. It uses psycopg2
to communicate with PostgreSQL Database, then it queries the database and wirte the results in a text file.
- clone the project using
git clone https://github.com/mostafa-saeed/Udacity-Log-Project
. - change the directory using
cd Udacity-Log-Project
. - Run the application using
python3 app.py
. - Then you will find
logFile.txt
which inclues all the results from the database.
- app.py
- This file contains the core logic of the application.
- It also inculdes the log Function which writes a string in both terminal window and in the log file.
- db_functions.py
- This file contains the database string.
- It send queries to the database and return the result.