Class EpilogueProxy

java.lang.Object
org.team1126.lib.logging.EpilogueProxy

public final class EpilogueProxy extends Object
Utility for interfacing with the generated Epilogue class. Keeps the occasional false negatives from the language server in one file.
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    configure(Consumer<edu.wpi.first.epilogue.EpilogueConfiguration> configurator)
    Configures Epilogue.
    static edu.wpi.first.epilogue.logging.EpilogueBackend
    Returns the configured backend.
    static edu.wpi.first.epilogue.EpilogueConfiguration
    Gets 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.EpilogueBackend
    Gets the configured root backend.
    static void
    setBackend(edu.wpi.first.epilogue.logging.EpilogueBackend backend)
    Configures a new backend.
    static boolean
    shouldLog(edu.wpi.first.epilogue.Logged.Importance importance)
    Checks if data associated with a given importance level should be logged.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • configure

      public static void configure(Consumer<edu.wpi.first.epilogue.EpilogueConfiguration> configurator)
      Configures Epilogue.
      Parameters:
      configurator - A consumer that mutates the provided EpilogueConfiguration.
    • 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

      public static Consumer<edu.wpi.first.epilogue.logging.EpilogueBackend> getLogger(Object obj)
      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.