Package frc.team_8840_lib.info.console
Class Logger
java.lang.Object
frc.team_8840_lib.info.console.Logger
- All Implemented Interfaces:
Loggable
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidaddClassToBeAutoLogged(Loggable logger) static voidassignLogWriterThroughPreferences(Path preferencesFilePath, Class<LogWriter>[] logWriters, Class<LogWriter> _default) static voidstatic voidstatic longstatic Stringstatic voidInitialize the LogWriter.static voidstatic voidstatic voidstatic voidstatic voidstatic voidstatic voidstatic voidstatic voidstatic booleanstatic voidsetReadyToSave(boolean ready) static voidSets the log writer of the Robot
-
Constructor Details
-
Logger
public Logger()
-
-
Method Details
-
logCompetitionStart
public static void logCompetitionStart() -
logCompetitionEnd
public static void logCompetitionEnd() -
Error
-
Log
-
Log
-
Log
-
Log
-
Log
-
Log
-
Log
-
addClassToBeAutoLogged
-
setWriter
Sets the log writer of the Robot- Parameters:
writer- LogWriter for the robot
-
getLogWriterName
-
initWriter
public static void initWriter()Initialize the LogWriter. Do not call though since this will be called in the backend of the API. This method also starts saving the auto logs. -
closeLogger
public static void closeLogger() -
getLogInterval
public static long getLogInterval() -
setReadyToSave
public static void setReadyToSave(boolean ready) -
logWriterIsLockedToCode
public static boolean logWriterIsLockedToCode() -
assignLogWriterThroughPreferences
-
getWorking
-
getBaseName
- Specified by:
getBaseNamein interfaceLoggable
-