Package org.team1126.lib.logging
Class EpilogueProxy
java.lang.Object
org.team1126.lib.logging.EpilogueProxy
Utility for interfacing with the generated
Epilogue
class. Keeps the occasional false negatives from the language
server in one file.-
Method Summary
Modifier and TypeMethodDescriptionstatic voidConfigures Epilogue.static edu.wpi.first.epilogue.logging.EpilogueBackendReturns the configured backend.static edu.wpi.first.epilogue.EpilogueConfigurationGets the current epilogue configuration.static Consumer<edu.wpi.first.epilogue.logging.EpilogueBackend> Generates a logging function for the provided object via reflection.static edu.wpi.first.epilogue.logging.EpilogueBackendGets the configured root backend.static voidsetBackend(edu.wpi.first.epilogue.logging.EpilogueBackend backend) Configures a new backend.static booleanshouldLog(edu.wpi.first.epilogue.Logged.Importance importance) Checks if data associated with a given importance level should be logged.
-
Method Details
-
configure
Configures Epilogue.- Parameters:
configurator- A consumer that mutates the providedEpilogueConfiguration.
-
getConfig
public static edu.wpi.first.epilogue.EpilogueConfiguration getConfig()Gets the current epilogue configuration. -
shouldLog
public static boolean shouldLog(edu.wpi.first.epilogue.Logged.Importance importance) Checks if data associated with a given importance level should be logged.- Parameters:
importance- The data's importance.
-
setBackend
public static void setBackend(edu.wpi.first.epilogue.logging.EpilogueBackend backend) Configures a new backend.- Parameters:
backend- The new backend for Epilogue to utilize.
-
getBackend
public static edu.wpi.first.epilogue.logging.EpilogueBackend getBackend()Returns the configured backend. -
getRootBackend
public static edu.wpi.first.epilogue.logging.EpilogueBackend getRootBackend()Gets the configured root backend. -
getLogger
Generates a logging function for the provided object via reflection. This method should not be invoked periodically due to performance implications.- Parameters:
obj- The object to generate the logger for.
-