Application notes from Maxim Integrated on adding log functionalities in your system. Link here (PDF)
This article describes how to add a “black box” functionality – nonvolatile fault logging – to networking, communications, industrial, and medical equipment. It outlines the benefits of recording fault data, including faster, more definitive failure analysis.
Read more Here