Автор: Michael Driscoll
Издательство: Teach Me Python LLC/Leanpub
Год: 2024-10-03
Страниц: 154
Язык: английский
Формат: pdf (true), epub
Размер: 10.1 MB
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 in. 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.
What You'll Learn:
In this book, you will learn how about the following:
Logger objects
Log levels
Log handlers
Formatting your logs
Log configuration
Logging decorators
Rotating logs
Logging and concurrency
and more!
Logs are useful for the following reasons:
Debugging your code
Tracing code paths
Audits
Root cause analysis
Saves off error reports
Most of the items mentioned above are related to figuring out how your application works and what went wrong if anything. Audits are in the corporate domain and may be needed for governance or certification reasons.
Audience:
You don’t need to be a programmer or engineer to use this book, but it helps. The primary target is people who want to learn about what logging in Python is and how to use it effectively. If you understand the basics of Python, then you’ll be even better off!
Скачать Python Logging: Auditing and Debugging Through