Class FaultLogger

java.lang.Object
dev.doglog.internal.FaultLogger

@ThreadSafe public class FaultLogger extends Object
Provides the interface for logging faults. Faults are a DogLog concept that were created prior to WPILib alerts. Faults track occurrence counts and history in addition to optionally creating a WPILib alert for display on the driver station.
  • Method Details

    • addFault

      public static void addFault(String faultName)
    • addFault

      public static void addFault(String faultName, @Nullable org.wpilib.util.Alert.Level alertLevel)
      Log a fault.
      Parameters:
      faultName - The name of the fault to log.
      alertLevel - The level of alert to create for the fault, or null if it should not create an alert
    • clearFault

      public static void clearFault(String faultName)
    • decreaseFault

      public static void decreaseFault(String faultName)
      Remove the alert associated with a fault.
      Parameters:
      faultName - The name of the fault to remove.
    • faultsActive

      public static boolean faultsActive()
    • faultsLogged

      public static boolean faultsLogged()