10. Logging and Time

On many of the applications I create, I need an accurate representation of dates and time, or of durations. One particular use case is logging. In a modern network, if I review logs, my ability to make sense of them depends on the accuracy of the timestamps. How can we figure out causality if we cannot definitely identify the sequence of events?

Before you begin. create a directory to keep example files in and you are ready to code.

This could be on your OneDrive, in these examples, I am using OneDrive\Python\Exercises_10