liveBook · Manning

Log

As explained in Delivering Machine Learning Projects: From design to deployment

Logging is the recording of software or system events, states, and messages for operational analysis and troubleshooting.

Production logging records enough system activity to show whether an ML system is behaving as expected and to trace what happened when it is not. It belongs alongside monitoring and alerting in the infrastructure that lets support groups accept and operate a release. section 9.5 section 9.11

Make logging an explicit production task:

  • Record operational events, including database connections, user logins, data updates, and model decisions. section 9.5
  • Capture functional as well as nonfunctional behavior. An ML system can stop making useful predictions when the world changes, even if its software still runs. section 9.5
  • Set log density and retention for the application, accounting for the load of calculating metrics and the cost of storing logs. section 9.5
  • Provide alerts and agree on support handover and maintenance documentation before release. section 9.5 section 9.11

Connecting project logs

A production setup can connect Splunk to logs from both the model server and the data subsystem while the team arranges for support groups to take over the system. section 9.10

For an inherited ML system, check first that activity logs exist, performance can be understood, and failures alert a support group. Missing logging and monitoring are technical debt: without logs, troubleshooting becomes harder, and failures may go unnoticed longer. section 10.2.2

How Delivering Machine Learning Projects: From design to deployment covers it

How deep it goes
Defines operational goals and event categories but does not specify log schemas, instrumentation APIs, or alert thresholds.
Examples
Illustrates database connections, user logins, data updates, model decisions, and Splunk receiving model-server and data-subsystem logs.
What you can do after
Practice/perform it by planning production log coverage, retention, and support alerts, then checking inherited ML systems for gaps.
How it connects
Links logging to monitoring, alerting, model drift, technical debt, and model governance.

Also explained in

Compare how 14 books explain log →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Delivering Machine Learning Projects: From design to deployment. The section links point to the parts of the book it draws on.