Package org.team1540.rooster.logging
Class DriverStationAppender
- java.lang.Object
-
- org.apache.log4j.AppenderSkeleton
-
- org.team1540.rooster.logging.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 levelLevel.ERROR
or above will be reported usingDriverStation.reportError()
, while calls belowLevel.ERROR
but at or above levelLevel.WARN
will be reported usingDriverStation#reportWarning()
-
-
Constructor Summary
Constructors Constructor Description DriverStationAppender()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
append(org.apache.log4j.spi.LoggingEvent loggingEvent)
void
close()
boolean
requiresLayout()
-