...

/

Logging and Debugging

Logging and Debugging

Learn how to understand what's going on with your code (logging) and how to investigate problems in it (debugging).

Overview

In this lesson, we discuss logging and debugging in machine learning applications. Logging always goes toe to toe with debugging because both are essential parts of troubleshooting.

Logging helps us understand what’s going on with our program after it has launched. We can investigate logs either during the application run or retrospectively after the problem is already captured.

Debugging is a set of techniques that helps us effectively detect, localize, and fix troubles that have occurred in our code.

Logging

After the problem is identified (it could be an alert from monitoring in the best case or a customer complaint in the worst), it’s time to understand what happened. Such investigation will go much smoother if there are enough informative logs.

Logging is a cornerstone of a monitoring strategy. If we’re not sure whether we should log or not, we should log. We can always remove logs that we later realize are unnecessary, but can’t ...

Access this course and 1400+ top-rated courses and projects.