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 voidlogThrowableCrash(Throwable throwable) Appends the run UUID, an "Exception" marker, the current time, and the stack trace to '/home/systemcore/crash_tracking.txt'.
-
Constructor Details
-
CrashTracker
public CrashTracker()
-
-
Method Details
-
logThrowableCrash
Appends the run UUID, an "Exception" marker, the current time, and the stack trace to '/home/systemcore/crash_tracking.txt'. Entries are appended, never overwritten.- Parameters:
throwable- The Throwable exception to log. Can be any subclass of Throwable, capturing errors and exceptions that occur during the application's execution.
-