Book Image

Modern Python Solutions - Part 3 [Video]

By : Steven F. Lott
Book Image

Modern Python Solutions - Part 3 [Video]

By: Steven F. Lott

Overview of this book

Python is the preferred choice of developers, engineers, data scientists, and hobbyists everywhere. It is a great scripting language that can power your applications and provide great speed, safety, and scalability. By exposing Python as a series of simple recipes, you can gain insight into specific language features in a particular context. This video will arm you with the knowledge of creating applications with flexible logging, powerful configuration, and command-line options, automated unit tests, and good documentation. You will learn to use the Flask framework for Restful APIs. You will end the course equipped with the knowledge of testing, web services, and configuration and application integration tips and tricks.
Table of Contents (3 chapters)
Chapter 3
Application Integration
Content Locked
Section 4
Using Logging for Control and Audit Output
Python offers the logging package, which can be used to direct the ancillary output to a separate file. It can also be used to format and filter that additional output. How can we use logging properly? Let’s see this. - Import logging module and implement basic logging features into the existing functions - Create two logger objects as module globals - Use the configuration to wrap the main() function