강의

멘토링

커뮤니티

Programming

/

etc. (Programming)

Stop Using Print Statements! Proper Python Logging with loguru

Stop using print()! Learn easy and powerful logging with Python's loguru library. From basic concepts to file management, FastAPI web app integration and Slack notifications, we'll teach you step by step with hands-on practice.

(5.0) 2 reviews

35 learners

Level Basic

Course period Unlimited

  • haeyeomiso
Python
Python
trace-logging
trace-logging
python-logging
python-logging
loguru
loguru
Python
Python
trace-logging
trace-logging
python-logging
python-logging
loguru
loguru

What you will gain after the course

  • How to quickly and easily create logs by mastering the core features of the loguru library

  • Practical techniques for automatically managing log files (rotation, retention, compression)

  • Know-how for Building Production-Level Logging Systems in FastAPI Web Applications

  • How to implement a system that integrates with Slack to receive real-time error notifications

  • Techniques for effectively analyzing log data by generating structured logs in JSON format

🙋‍♂️ Course Introduction

Are you still only using print() for debugging? 😱 As your code gets more complex, I'm sure you've all experienced the pain of print() statements cluttering up your terminal in a jumbled mess.

This course is an introductory course on 'Python Enjoyable Logging (python-logging)' designed specifically for those people! No more complex and headache-inducing configurations! 🙅‍♀️ Let's learn together the world's easiest Python logging library, loguru, which starts with just a single line of code.

It doesn't just end with simply printing logs. 🚀 Starting from beautifully coloring your terminal, we'll guide you step by step through a hands-on approach that covers intelligently managing log files, and ultimately building a professional-level logging system (trace-logging) in a real web application (FastAPI) and even sending real-time error notifications.

Are you ready to end the era of print() and upgrade your development skills to the next level? ✨


💡 Course Features

  • 🎬 Hands-on Curriculum: This isn't just a theoretical lecture you watch with your eyes. In each chapter, you'll directly follow along with the code and naturally master all the features of loguru.

  • 📈 From Complete Beginners to Intermediate Level: If you know basic Python syntax, anyone can follow along as we start with easy concept explanations. However, the final result is a production-level logging system that can be applied directly to real work.

  • 🤖 Practical Final Project: Just learning how to use libraries and that's it? No way! We'll apply loguru to the hottest web framework FastAPI and build your own web application logging system from start to finish.

  • 🎉 Complete 'Trial and Error' Prevention Package: From development environment setup to final deployment scenarios! We meticulously cover everything from A to Z to prevent all the trial and error that students might experience in advance.

I recommend this for people like this

print() Python beginner dreaming of escape 🐣

내 코드가 어떻게 돌아가는지 궁금해서 [[CODE_1]]print()[[/CODE_1]]를 남발하다가, 정작 중요한 정보를 놓치고 코드가 지저분해져서 고민이셨던 분! [[BR]]이제 [[CODE_2]]loguru[[/CODE_2]]로 필요한 정보만 깔끔하고 예쁘게 확인하세요.

Junior developer facing their first company and first project 👨‍💻

'How do you handle logging in real-world projects?' You were at a loss, weren't you? With this one course, you can perfectly prepare for file management, JSON structured logging, and real-time error notifications that you can immediately apply in real-world work.

Developers who want to give wings to their side projects 🚀
Just because it's a solo project doesn't mean you can leave sloppy logs! For those who want to introduce a systematic logging system to their precious service built with FastAPI to enhance stability and more easily track user behavior.

Here's what you'll learn!

  1. Master Loguru's Core Features👑 With just one function, logger.add(), learn the magical features of loguru that save logs to files, change them to your desired format, and automatically manage old files (rotation, retention, compression). No more staying up all night worrying about log file management!

  2. Elegant Exception Handling and Debugging 🛠️ No more code cluttered with try-except! We'll teach you powerful debugging secrets: automatically catch errors with just one line using the @logger.catch decorator, and instantly identify which variables are causing problems with the diagnose=True option. (Security warnings are essential! 😉)

  3. FastAPI Real-World Project: Building Your Own Logging System 🏗️ Let's mobilize all the knowledge you've learned so far to build a production-level logging system for FastAPI web applications. You'll separate configurations for development and production environments, create middleware that automatically tracks all requests and responses, and truly develop practical skills.

  4. External Service Integration: Real-time Error Notifications via Slack 🔔 What if a critical error occurs in your service? You need to know immediately, even while sleeping! Let's implement an automated system that integrates loguru with Slack to send real-time error notifications to designated channels. Now you can sleep soundly! 😴


Pre-enrollment Reference Information

Practice Environment

  • The course is explained based on MacOS.

Prerequisites and Important Notes

  • Basic Python syntax


Recommended for
these people

Who is this course right for?

  • Python beginners who feel limited by debugging with only the print() function

  • Junior developer who wants to build a systematic logging system

  • Those who want to learn practical logging methods while developing web applications with FastAPI

  • Data engineers who want to efficiently manage and analyze log data

  • All Python developers who found the existing logging module complex and difficult

Need to know before starting?

  • Understanding Python Basic Syntax

Hello
This is

572

Learners

28

Reviews

32

Answers

4.5

Rating

6

Courses

Nice to meet you!

I am Haeyeo, someone who explores the infinite possibilities of AI and computer science and wishes to share that journey with all of you.

During my undergraduate years, my passion for my major was so intense that I was nicknamed a 'Computer Science Addict.' I graduated at the top of my class with a major GPA of over 4.4. I then earned my Master's degree in AI from Seoul National University and further deepened my expertise through a doctoral program.

However, as I felt as much of a fascination for solving real-world problems with AI as I did for theoretical exploration, I took a break from my doctoral studies to gain valuable hands-on experience by working on AI-based LLM and video analysis projects at a startup.

Currently, I am working as an LLM project developer and PM at one of the top three conglomerates in Korea, contributing to creating positive changes that AI technology will bring to our lives. I will generously share with you the challenges I faced, the problem-solving processes I went through, and the vivid know-how I gained in the field. I will be your reliable guide on this journey into the exciting world of AI.

Inquiries and Proposals: haeyeo.open@gmail.com

Curriculum

All

19 lectures ∙ (3hr 34min)

Published: 
Last updated: 

Reviews

All

2 reviews

5.0

2 reviews

  • abcd123123님의 프로필 이미지
    abcd123123

    Reviews 327

    Average Rating 5.0

    5

    16% enrolled

    • tiaz0128님의 프로필 이미지
      tiaz0128

      Reviews 9

      Average Rating 5.0

      5

      42% enrolled

      You have excellent delivery skills and the content structure is solid. It's great that I can quickly learn just the core material. This might vary depending on personal preference, but since you often explain things using only Notion, I think it would have been even better if you had demonstrated by actually running code while explaining! I'll have to purchase and watch other courses too! Thank you.

      $35.20

      haeyeomiso's other courses

      Check out other courses by the instructor!

      Similar courses

      Explore other courses in the same field!