Package xbot.common.advantage
Class AKitLogger
java.lang.Object
xbot.common.advantage.AKitLogger
-
Nested Class Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
void
void
void
void
void
void
void
void
void
void
<E extends Enum<E>>
void<U extends Unit>
void<T,
MessageType extends us.hebi.quickbuf.ProtoMessage<?>>
void<T> void
<T> void
void
void
void
<T extends WPISerializable>
void<T extends StructSerializable>
voidstatic void
This controls the log level for all AKitLoggers.void
setLogLevel
(AKitLogger.LogLevel level) Set the log level for this particular logger instance.void
Changes the log prefix.protected boolean
-
Constructor Details
-
AKitLogger
-
AKitLogger
-
-
Method Details
-
setGlobalLogLevel
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
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
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
-
record
-
record
-
record
-
record
-
record
-
record
-
record
-
record
-
record
-
record
-
record
-
record
-
record
-
record
-
record
-
record
-
record
-
record
-
record
-
record
-