Package frc.spectrumLib.util
Class CrashTracker
java.lang.Object
frc.spectrumLib.util.CrashTracker
Tracks start-up and caught crash events, logging them to a file which doesn't roll over
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
logThrowableCrash
(Throwable throwable) Logs details of a Throwable exception to a designated file.
-
Constructor Details
-
CrashTracker
public CrashTracker()
-
-
Method Details
-
logThrowableCrash
Logs details of a Throwable exception to a designated file. This method captures the unique run instance UUID, the type of marker (in this case, "Exception"), the current date and time, and the stack trace of the Throwable, if present. The log entry is appended to the file '/home/lvuser/crash_tracking.txt', ensuring that each incident is recorded sequentially without overwriting previous entries. This method is typically used to record unexpected exceptions or crashes that occur during the runtime of the application, aiding in post-event analysis and debugging.- Parameters:
throwable
- The Throwable exception to log. Can be any subclass of Throwable, capturing errors and exceptions that occur during the application's execution.
-