Patent ID: 8793532

Claim:
A system, comprising: a memory storing executable instructions for controlling a hard-disk drive; and a processor configured to execute the executable instructions stored in the memory, wherein the executable instructions include: a monitoring module operative to cause the processor, upon execution, to provide an event indicator of an event occurring on the hard-disk drive; a recording module operative to cause the processor, upon execution, to create an event record based on a logging instruction to log the event indicator; an event linkage module operative to cause the processor, upon execution, to link the event record to a hard-disk drive activity indicator; an error log formatting module operative to cause the processor, upon execution, to format the event record and the hard-disk drive activity indicator into a hard-disk drive error log; and a configuration module operative to cause the processor, upon execution, to provide a configuration flag to one or more of the monitoring module, the recording module, the event linkage module, and the error log formatting module, wherein the configuration flag comprises one or more of: an enablement flag to enable the monitoring module to provide the event indicator; and a wrap enablement flag to instruct the error log formatting module to reset the hard-disk drive error log or to overwrite portions of the hard-disk drive error log if the hard-disk drive error log is larger than a specified threshold.