This repository contains Python programs demonstrating the use of logging, exception handling, and a menu-driven University Management System.
The project includes examples of different logging levels and a simple student management application using Python dictionaries.
DAY3/
│
├── 1-logging_debug.py # Demonstrates DEBUG logging
├── 2-logging_info.py # Demonstrates INFO logging
├── 3-emp_mgmt_logging.py # Employee Management using Logging
├── 4-univ_logging_try_catch.py # University Management with Logging & Exception Handling
│
├── add_student.py # Module to add students
├── view_student.py # Module to view student details
├── student_univ_modules.py # Functions for university management
│
├── employee.log # Log file generated by Employee Management
├── university.log # Log file generated by University Management
│
└── README.md
- DEBUG Logging
- INFO Logging
- Employee Management Logging
- Logging using Exception Handling
- Add University
- Add Student
- View Student
- View All Students
- Logging of all operations
- Exception Handling using try-except
- Python 3.x
- Logging Module
- Exception Handling
- Dictionary Data Structure
- Modular Programming
- Open the project folder in VS Code.
- Open the terminal.
- Run the required Python file.
Example:
python 1-logging_debug.pyor
python 4-univ_logging_try_catch.pyThe following log files are automatically created during execution:
- employee.log
- university.log
These files store information about program execution, warnings, errors, and other logging messages.
- Python Logging
- Logging Levels
- Exception Handling
- Modular Programming
- Dictionary Operations
- Python Functions
- Menu-Driven Programs
Cheshta Garg