Package dev.doglog.internal
Class FaultLogger
java.lang.Object
dev.doglog.internal.FaultLogger
Provides the interface for logging faults. Faults are a DogLog concept that were created prior to
WPILib alerts. Alerts are great but are NT only, so faults allow DogLog to provide a simple
interface to logging errors that writes to both NT and DataLog.
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
static void
static void
clearFault
(LogQueuer logger, String faultName) static void
decreaseFault
(LogQueuer logger, String faultName) Remove the alert associated with a fault.static boolean
static boolean
-
Method Details
-
addFault
-
addFault
public static void addFault(LogQueuer logger, String faultName, edu.wpi.first.wpilibj.Alert.AlertType alertType) - Parameters:
logger
- LogQueuer to use.faultName
- The name of the fault to log.alertType
- The type of alert to create for the fault, ornull
if it should not create an alert
-
decreaseFault
Remove the alert associated with a fault.- Parameters:
logger
- LogQueuer to use.faultName
- The name of the fault to remove.
-
clearFault
-
faultsLogged
public static boolean faultsLogged() -
faultsActive
public static boolean faultsActive()
-