A method for deferred logging of machine data following an error or event
in order to capture critical information for that error or event treats
the data as persistent and it does not get logged until a disruption
occurs to the system (e.g. system reset, restart, deactivation, or
powered-down). This way, important debug data can be held in the hardware
or software, without a need for complicated hardware and code for logging
this debug data. Methods are also disclosed for setting a switch to
indicate deferred logging is required, referencing the log data with the
original event information, calling home with the debug data, resetting
the deferred logging switch, setting the deferred logging switch
manually, viewing whether the switch is already set, and supporting
different kinds of switches.