Skip to content

Repository files navigation

Python Logging & University Management System

📌 Overview

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.


📂 Project Structure

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

🚀 Features

Logging Programs

  • DEBUG Logging
  • INFO Logging
  • Employee Management Logging
  • Logging using Exception Handling

University Management System

  • Add University
  • Add Student
  • View Student
  • View All Students
  • Logging of all operations
  • Exception Handling using try-except

🛠️ Technologies Used

  • Python 3.x
  • Logging Module
  • Exception Handling
  • Dictionary Data Structure
  • Modular Programming

▶️ How to Run

  1. Open the project folder in VS Code.
  2. Open the terminal.
  3. Run the required Python file.

Example:

python 1-logging_debug.py

or

python 4-univ_logging_try_catch.py

📄 Log Files

The 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.


📚 Learning Outcomes

  • Python Logging
  • Logging Levels
  • Exception Handling
  • Modular Programming
  • Dictionary Operations
  • Python Functions
  • Menu-Driven Programs

👩‍💻 Author

Cheshta Garg

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages