강의

멘토링

로드맵

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

2 learners are taking this course

  • haeyeomiso
실습 중심
실무적용
프로그래밍
로깅
클린코드
Python
trace-logging
python-logging
loguru

What you will learn!

  • 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

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

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 smart log file management, and ultimately building a professional-level logging system for real web applications (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? ✨



  1. Master Loguru Core Features👑logger.add() With just one function, 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! With just one line of the @logger.catch decorator, automatically catch errors and use the diagnose=True option to instantly identify which variables caused the problem - we'll share these powerful debugging secrets with you. (Security warnings are essential! 😉)

  3. FastAPI Hands-on 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 can develop real-world skills by separating configurations for development and production environments and creating middleware that automatically tracks all requests and responses.

  4. External Service Integration: Receive 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! 😴


💡 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: We start with easy concept explanations so anyone who knows basic Python syntax can follow along. However, the final result is a production-level logging system that can be directly applied in real work environments.

  • 🤖 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 our 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 beginners dreaming of escape 🐣

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

Junior developer facing their first company, 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 improve stability and more easily track user behavior.

After taking the course

  • Mypy, black, pytest. You can maintain code quality using CI.

  • I'll show you how to effectively perform spatial searches using MongoDB and its built-in Google S2. Spatial search will no longer be intimidating.

  • You can't call it production ready without load testing. How do you perform simple load testing? You'll also learn how to prove that performance has improved.

  • Database != RDBMS. You can build real applications using MongoDB.

  • You'll be able to use unit testing and CI as naturally as breathing.

You'll learn this kind of content.

MongoDB: Query Plan, Compound index

Is MongoDB not suitable for real-world use? Slow? Unstable? No! Let's properly learn NoSQL. We cover in-depth topics beyond simple CRUD, including query plan, compound index, aggregation pipeline, and more.

Google S2

What happens when you infinitely divide the Earth into squares? Let's explore the innovative idea of how Google's S2 improves spatial query speed and its underlying principles.

MongoDB: Query Plan, Compound index

Parallel queries using FastAPI and asyncio.gather()! Learn how to use coroutines.

Redis Cache without TTL

Did you perhaps think that [cache == values that disappear over time]? Let's examine the problems with TTL and reconsider what cache really means.

The person who created this course

  • 2021 ~ Present: Python Backend Developer at Delivery Company W

  • 2022: S Coding Club python tutor

💡Increase trust in your course by introducing the instructor through knowledge sharing related to this course.

  • Please write focusing on your background and experience that are closely related to the lecture topic.

  • Rather than unconditionally listing all your background, it would be good to incorporate the concerns and motivations that led you to create this course.

  • Capture attention by using clean, simple text along with portfolios, videos, photos, and more.

Pre-enrollment Reference Information

Practice Environment

  • The lectures are explained based on MacOS. If you're using a Windows machine, you should be able to follow along for the most part as long as Docker is installed.

  • In the lectures, we use PyCharm Professional. I believe you can follow along without any issues using the Educational version as well.

Learning Materials

  • I'll provide it as a Notion link!

Prerequisites and Important Notes

  • Basic Python syntax (

    generator, decorator's basic operating principles)

  • It would be good if you have used async await at least once.

  • Basic SQL knowledge

💡Please write detailed reference information needed for learning the course.
This helps students fully understand the content covered in the course and increases learning satisfaction.

  1. Practice Environment

    • Operating System and Version (OS): OS types and versions such as Windows, macOS, Linux, Ubuntu, Android, iOS, etc.

    • Tools Used: Software/hardware versions and billing plans required for practice, whether virtual machines are used, etc.

    • PC specifications: CPU, memory, disk, graphics card, and other recommended specifications for running the program

  2. Learning Materials

    • Types of learning materials provided (PPT, cloud links, text, source code, assets, programs, example problems, etc.)

    • Volume and capacity, characteristics and precautions regarding other learning materials, etc.

  3. Prerequisites and Important Notes

    • Whether essential prerequisite knowledge is considered based on learning difficulty

    • Content directly related to taking the course, such as lecture video quality (audio/video quality), and recommended learning methods

    • Questions/Answers and Future Update Related Content

    • Notice Regarding Copyright of Lectures and Learning Materials

This template is provided with reference to the 'How do delivery apps find good restaurants near me?' lecture.

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

338

Learners

14

Reviews

22

Answers

4.8

Rating

5

Courses

반갑습니다!

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

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

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

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

Curriculum

All

19 lectures ∙ (3hr 34min)

Published: 
Last updated: 

Reviews

Not enough reviews.
Please write a valuable review that helps everyone!

Limited time deal

$27,060.00

40%

$35.20

haeyeomiso's other courses

Check out other courses by the instructor!

Similar courses

Explore other courses in the same field!