Skip to content

A Python-based command-line interface (CLI) tool to perform division operations while handling exceptions like ZeroDivisionError. Errors are automatically logged with timestamps into a log file using Python's logging module. This is useful for debugging and tracking program crashes during runtime.

Notifications You must be signed in to change notification settings

006-Ekta/Error-Logger-CLI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

2 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Error Logger CLI

A simple command-line tool in Python that catches errors and logs them into a file using the logging module.


πŸ“‹ Features

  • Handles exceptions (like ZeroDivisionError)
  • Logs error details with timestamps
  • CLI-based input/output

πŸ› οΈ Technologies

  • Python 3
  • logging module

πŸ“Œ Author

Ekta Deshmukh


πŸš€ How to Run

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.

----

About

A Python-based command-line interface (CLI) tool to perform division operations while handling exceptions like ZeroDivisionError. Errors are automatically logged with timestamps into a log file using Python's logging module. This is useful for debugging and tracking program crashes during runtime.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages