|
所在平台: Udemy |
课程主页: https://www.udemy.com/course/python-logging-course/
课程评论:没有评论
**Coursera 课程总结:Python 日志记录** 本课程由 Mouse Vs Python 的 Michael Driscoll 主讲,旨在教授学员如何在 Python 编程语言中实现专业的日志记录。 **课程概述:** 课程指出,初学者常使用 `print()` 函数向终端输出信息来学习编程,然而在实际的专业应用中,日志记录到文件才是标准做法。日志文件不仅可以作为合规审计的依据,还能帮助工程师排查和调试问题。Python 强大的日志记录模块使得这一过程变得简单高效。无论您是 Python 新手还是经验丰富的开发者,本课程都能帮助您提升技能。 **学习内容:** 本课程将涵盖以下核心知识点: * **Logger 对象:** 理解日志记录的核心组件。 * **日志级别:** 掌握不同级别的日志信息(如 DEBUG, INFO, WARNING, ERROR, CRITICAL)。 * **日志处理器 (Handlers):** 学习将日志输出到不同目的地(如文件、控制台、网络)。 * **日志格式化:** 自定义日志信息的输出格式,包含时间戳、日志级别、消息等。 * **日志配置:** 学习如何配置和管理日志记录,包括通过文件配置。 * **日志装饰器:** 探索如何使用装饰器简化日志记录操作。 * **日志轮转 (Rotating Logs):** 了解如何管理日志文件大小,自动分割和归档旧日志。 * **日志与并发:** 学习在多线程或多进程环境下如何安全有效地记录日志。 * **及更多:** 课程还将涉及其他相关主题,帮助学员构建健壮的日志系统。 Michael Driscoll 拥有超过十年的 Python 编程和写作经验,并出版了十余本 Python 相关书籍,确保了课程内容的专业性和实用性。
What does every new developer do when they are first learning to program? They print out strings to their terminal. It's how we learn! But printing out to the terminal isn't what you do with most professional applications. In those cases, you log into files. Sometimes, you log into multiple locations at once. These logs may serve as an audit trail for compliance purposes or help the engineers debug what went wrong.Python Logging teaches you how to log in the Python programming language. Python is one of the most popular programming languages in the world. Python comes with a logging module that makes logging easy.Whether you are a beginner with Python or a seasoned programming rock star, Michael Driscoll will help you continue to grow in your developer journey. My blog, Mouse Vs Python, has hundreds of awesome tutorials that you can read for free!You can rest assured that Michael knows Python. He has been programming and writing about it for over a decade and has ten other Python books!What You'll LearnIn this course, you will learn how about the following:Logger objectsLog levelsLog handlersFormatting your logsLog configurationLogging decoratorsRotating logsLogging and concurrencyand more!