24-06-2026-Logging
Logger creation import logging logger = logging.getLogger("Test_app") logger.setLevel(logging.DEBUG) Create Handler Console Handler creation console_handler = logging.StreamHandler() console_handler.setLevel(logging.WARNING) File Handler creation file_handler = logging.FileHandler(r'/home/goutham/Desktop/python_training/project_1/logs/custom_log.log',mode='a') file_handler.setLevel(logging.DEBUG) formatter = logging.Formatter('%(asctime)s | %(levelname)s| %(filename)s| Line %(lineno)d|%(message)s',datefmt='%m/%d/%Y %H:%M:%S') attaching formatter to the Handler console_handler.setFormatter(formatter) file_handler.setFormatter(formatter) attaching handler to the logger logger.addHandler(console_handler) logger.addHandler(file_handler) logger.debug("Step:1") logger.info("Progress started") logger.warning("value is not correct") logger.error("Division by zero wont work") logger.critical("Application cannot be continued") def calculate_price_per_unit(price,quantity): logger.info(f"Calculate price per unit: {price}/{quantity}") try: price_per_unit = price/quantity logger.info(f"price per unit: {price_per_unit:2f}") return price_per_unit except ZeroDivisionError as e: logger.exception("Cannot calculate price-quantity is zero") return None except TypeError as e: logger.exception("Invalid input type- expected numbers") return None # calculate_price_per_unit(2000,15) calculate_price_per_unit(2000,0) calculate_price_per_unit(2000,"goutham") import logging def get_logger(logger_name,log_filename,level=logging.DEBUG): logger = logging.getLogger(logger_name) logger.setLevel(level) file_handler = logging.FileHandler(log_filename,mode="a") file_handler.setLevel(level) console_handler = logging.StreamHandler() console_handler.setLevel(logging.WARNING) formatter = logging.Formatter('%(asctime)s | %(levelname)s| %(filename)s| Line %(lineno)d|%(message)s',datefmt='%m/%d/%Y %H:%M:%S') file_handler.setFormatter(formatter) console_handler.setFormatter(formatter) logger.addHandler(file_handler) logger.addHandler(console_handler) return logger

The FULL VIDEO of Trump they didn’t want released

26-06-2026-Python Project Explaination

Kolumbien – Portugal Highlights | Gruppe K, FIFA WM 2026 | sportstudio

Should You Still Become a Software Engineer in 2026? GitHub VP

Using Large Language Models | Build Your Own LLM Workshop #1

16-06-2026 Exceptionhanding

System Design for Beginners Course

Santo Rosário | Sexta-feira | 04:00 | 12/06/2026 | Live Ao vivo

Linux Command Line for Beginners

Coding an HTTP Server in C

What to teach when AI writes the code | Rainer Stropek | TEDxLinz

Build a Full-Stack GenAI Project in 4 Hours (FastAPI, React, Supabase)

System Design Explained: APIs, Databases, Caching, CDNs, Load Balancing & Production Infra

40Hz Binaural Gamma Waves - Ultra Deep Concentration

MIT Just Revealed the AI Bubble's Fatal Flaw
![Power Automate Tutorial ⚡ Beginner To Pro [Full Course]](https://i.ytimg.com/vi/KsgxDz-nY_I/hqdefault.jpg?sqp=-oaymwEjCNACELwBSFryq4qpAxUIARUAAAAAGAElAADIQj0AgKJDeAE=&rs=AOn4CLA_rx8lyBNlJugWNGyVLp7B46-c0w)
Power Automate Tutorial ⚡ Beginner To Pro [Full Course]

20-06-2026- OOPs

System Design Course – APIs, Databases, Caching, CDNs, Load Balancing & Production Infra

Assembly Language Programming with ARM – Full Tutorial for Beginners

