강의

멘토링

커뮤니티

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

29 learners

  • haeyeomiso
실습 중심
실무적용
프로그래밍
로깅
클린코드
Python
trace-logging
python-logging
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

490

Learners

25

Reviews

32

Answers

4.5

Rating

6

Courses

반갑습니다!

AI와 컴퓨터 공학의 무한한 가능성을 탐구하며, 그 여정을 여러분과 나누고 싶은 해여입니다.

학부 시절 '컴퓨터 공학 중독자'라 불릴 만큼 전공에 대한 열정으로 4.4점 이상의 전공 학점으로 수석 졸업하였고, S대학원에서 AI를 전공하며 석사 학위를 받고 박사 과정을 통해 전문성을 심화했습니다.

하지만 이론적 탐구만큼이나 실제 세상의 문제를 AI로 해결하는 것에 큰 매력을 느껴, 박사 과정을 잠시 멈추고 스타트업에서 AI 기반 LLM 및 비디오 분석 프로젝트를 경험하며 귀중한 실전 경험을 쌓았습니다.

지금은 국내 Top3 대기업 중 한 곳에서 LLM 프로젝트 개발 및 PM으로 일하며, AI 기술이 우리 삶에 가져올 긍정적인 변화들을 만들어가는 데 기여하고 있습니다. 제가 겪었던 고민과 해결의 과정, 그리고 현장에서 얻은 생생한 노하우들을 여러분께 아낌없이 전달해 드리겠습니다. AI라는 흥미로운 세계로의 여정에 든든한 길잡이가 되어 드릴게요.

문의 및 제의 : haeyeo.open@gmail.com

Curriculum

All

19 lectures ∙ (3hr 34min)

Published: 
Last updated: 

Reviews

All

2 reviews

5.0

2 reviews

  • ADK123님의 프로필 이미지
    ADK123

    Reviews 326

    Average Rating 5.0

    5

    16% enrolled

    • tiaz.dev님의 프로필 이미지
      tiaz.dev

      Reviews 9

      Average Rating 5.0

      5

      42% enrolled

      전달력이 좋으시고 구성이 알찹니다. 핵심 내용만 빠르게 학습할수 있어서 좋습니다. 선호하는 스타일에 따라 다르겠지만, 노션으로만 설명을 하시는 경우가 많아서 직접 코드를 실행하면서 설명해주시면 더 좋지 않았을까 하는 생각도 있습니다! 다른 강의도 구매해서 봐야겠습니다! 감사합니다.

      $35.20

      haeyeomiso's other courses

      Check out other courses by the instructor!

      Similar courses

      Explore other courses in the same field!