Class AKitLogger

java.lang.Object
xbot.common.advantage.AKitLogger

public class AKitLogger extends Object
  • Constructor Details

  • Method Details

    • setGlobalLogLevel

      public static void setGlobalLogLevel(AKitLogger.LogLevel level)
      This controls the log level for all AKitLoggers. This will generally be set to INFO during competitions so that debug logs are not sent to the network table.
      Parameters:
      level - new level to set
    • setLogLevel

      public void setLogLevel(AKitLogger.LogLevel level)
      Set the log level for this particular logger instance. Log calls made after this will have that level when checking if they should record or not.
      Parameters:
      level - new level to set
    • setPrefix

      public void setPrefix(String prefix)
      Changes the log prefix. May be needed for subsystems that have the same name, such as multiple instances of the Swerve modules.
      Parameters:
      prefix - logging prefix, should end with a "/"
    • shouldSkipLogging

      protected boolean shouldSkipLogging()
    • record

      public void record(String key, byte[] value)
    • record

      public void record(String key, boolean value)
    • record

      public void record(String key, int value)
    • record

      public void record(String key, long value)
    • record

      public void record(String key, float value)
    • record

      public void record(String key, double value)
    • record

      public void record(String key, String value)
    • record

      public <E extends Enum<E>> void record(String key, E value)
    • record

      public <U extends Unit> void record(String key, Measure<U> value)
    • record

      public void record(String key, boolean[] value)
    • record

      public void record(String key, int[] value)
    • record

      public void record(String key, long[] value)
    • record

      public void record(String key, float[] value)
    • record

      public void record(String key, double[] value)
    • record

      public void record(String key, String[] value)
    • record

      public <T> void record(String key, Struct<T> struct, T value)
    • record

      public <T> void record(String key, Struct<T> struct, T... value)
    • record

      public <T, MessageType extends us.hebi.quickbuf.ProtoMessage<?>> void record(String key, Protobuf<T,MessageType> proto, T value)
    • record

      public <T extends WPISerializable> void record(String key, T value)
    • record

      public <T extends StructSerializable> void record(String key, T... value)
    • record

      public void record(String key, org.littletonrobotics.junction.mechanism.LoggedMechanism2d value)