Chapter 3
Application Integration
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