-
Notifications
You must be signed in to change notification settings - Fork 9
Open
Description
We could allow implicit logging of enum types through annotations, Logged classes and any other way we publish data.
There are 2 approaches:
- We generate a WPILib serializable struct on-the-fly for the enum using reflection and keep track of it as to not republish (not sure how possible this is)
- We just log it as the name of the enum variant as a String
Example of what it would look like in Logged
public default <E extends Enum<?>> void log(String key, E value, LogLevel level) {
Monologue.ntLogger.put(getFullPath() + "/" + key, value.name(), level);
}Metadata
Metadata
Assignees
Labels
No labels