Class DriverStationAppender

  • All Implemented Interfaces:
    org.apache.log4j.Appender, org.apache.log4j.spi.OptionHandler

    public class DriverStationAppender
    extends org.apache.log4j.AppenderSkeleton
    Translates Log4J log messages at Error or Warning level to driver station calls. Calls at level Level.ERROR or above will be reported using DriverStation.reportError(), while calls below Level.ERROR but at or above level Level.WARN will be reported using DriverStation#reportWarning()
    • Field Summary

      • Fields inherited from class org.apache.log4j.AppenderSkeleton

        closed, errorHandler, headFilter, layout, name, tailFilter, threshold
    • Constructor Detail

      • DriverStationAppender

        public DriverStationAppender()
    • Method Detail

      • append

        protected void append​(org.apache.log4j.spi.LoggingEvent loggingEvent)
        Specified by:
        append in class org.apache.log4j.AppenderSkeleton
      • close

        public void close()
      • requiresLayout

        public boolean requiresLayout()