A simple command-line tool in Python that catches errors and logs them into a file using the logging module.
- Handles exceptions (like ZeroDivisionError)
- Logs error details with timestamps
- CLI-based input/output
- Python 3
- logging module
Ekta Deshmukh
python error_logger.py
---
## π Output
- Result of division shown in terminal
- Errors saved in error_log.txt
π Example
Enter numerator: 10
Enter denominator: 0
Something went wrong! Error has been logged.
----