Package edu.wpi.first.epilogue.logging
Class NestedBackend
java.lang.Object
edu.wpi.first.epilogue.logging.NestedBackend
- All Implemented Interfaces:
EpilogueBackend
A backend that logs to an underlying backend, prepending all logged data with a specific prefix.
Useful for logging nested data structures.
-
Constructor Summary
ConstructorDescriptionNestedBackend
(String prefix, EpilogueBackend impl) Creates a new nested backed underneath another backend. -
Method Summary
Modifier and TypeMethodDescriptionGets a backend that can be used to log nested data underneath a specific path.void
Logs a boolean data point.void
Logs a boolean array data point.void
Logs a raw byte array data point.void
Logs a 64-bit floating point data point.void
Logs a 64-bit floating point array data point.void
Logs a 32-bit floating point data point.void
Logs a 32-bit floating point array data point.void
Logs a 32-bit integer data point.void
Logs a 32-bit integer array data point.void
Logs a 64-bit integer data point.void
Logs a 64-bit integer array data point.void
Logs a text data point.void
Logs a string array data point.<S> void
Logs an array of struct-serializable objects.<S> void
Logs a struct-serializable object.
-
Constructor Details
-
NestedBackend
Creates a new nested backed underneath another backend.- Parameters:
prefix
- the prefix to append to all data logged in the nested backendimpl
- the backend to log to
-
-
Method Details
-
getNested
Description copied from interface:EpilogueBackend
Gets a backend that can be used to log nested data underneath a specific path.- Specified by:
getNested
in interfaceEpilogueBackend
- Parameters:
path
- the path to use for logging nested data under- Returns:
- the nested backend
-
log
Description copied from interface:EpilogueBackend
Logs a 32-bit integer data point.- Specified by:
log
in interfaceEpilogueBackend
- Parameters:
identifier
- the identifier of the data pointvalue
- the value of the data point
-
log
Description copied from interface:EpilogueBackend
Logs a 64-bit integer data point.- Specified by:
log
in interfaceEpilogueBackend
- Parameters:
identifier
- the identifier of the data pointvalue
- the value of the data point
-
log
Description copied from interface:EpilogueBackend
Logs a 32-bit floating point data point.- Specified by:
log
in interfaceEpilogueBackend
- Parameters:
identifier
- the identifier of the data pointvalue
- the value of the data point
-
log
Description copied from interface:EpilogueBackend
Logs a 64-bit floating point data point.- Specified by:
log
in interfaceEpilogueBackend
- Parameters:
identifier
- the identifier of the data pointvalue
- the value of the data point
-
log
Description copied from interface:EpilogueBackend
Logs a boolean data point.- Specified by:
log
in interfaceEpilogueBackend
- Parameters:
identifier
- the identifier of the data pointvalue
- the value of the data point
-
log
Description copied from interface:EpilogueBackend
Logs a raw byte array data point. NOTE: serializable data should be logged usingEpilogueBackend.log(String, Object, Struct)
.- Specified by:
log
in interfaceEpilogueBackend
- Parameters:
identifier
- the identifier of the data pointvalue
- the value of the data point
-
log
Description copied from interface:EpilogueBackend
Logs a 32-bit integer array data point.- Specified by:
log
in interfaceEpilogueBackend
- Parameters:
identifier
- the identifier of the data pointvalue
- the value of the data point
-
log
Description copied from interface:EpilogueBackend
Logs a 64-bit integer array data point.- Specified by:
log
in interfaceEpilogueBackend
- Parameters:
identifier
- the identifier of the data pointvalue
- the value of the data point
-
log
Description copied from interface:EpilogueBackend
Logs a 32-bit floating point array data point.- Specified by:
log
in interfaceEpilogueBackend
- Parameters:
identifier
- the identifier of the data pointvalue
- the value of the data point
-
log
Description copied from interface:EpilogueBackend
Logs a 64-bit floating point array data point.- Specified by:
log
in interfaceEpilogueBackend
- Parameters:
identifier
- the identifier of the data pointvalue
- the value of the data point
-
log
Description copied from interface:EpilogueBackend
Logs a boolean array data point.- Specified by:
log
in interfaceEpilogueBackend
- Parameters:
identifier
- the identifier of the data pointvalue
- the value of the data point
-
log
Description copied from interface:EpilogueBackend
Logs a text data point.- Specified by:
log
in interfaceEpilogueBackend
- Parameters:
identifier
- the identifier of the data pointvalue
- the value of the data point
-
log
Description copied from interface:EpilogueBackend
Logs a string array data point.- Specified by:
log
in interfaceEpilogueBackend
- Parameters:
identifier
- the identifier of the data pointvalue
- the value of the data point
-
log
Description copied from interface:EpilogueBackend
Logs a struct-serializable object.- Specified by:
log
in interfaceEpilogueBackend
- Type Parameters:
S
- the serializable type- Parameters:
identifier
- the identifier of the data pointvalue
- the value of the data pointstruct
- the struct to use to serialize the data
-
log
Description copied from interface:EpilogueBackend
Logs an array of struct-serializable objects.- Specified by:
log
in interfaceEpilogueBackend
- Type Parameters:
S
- the serializable type- Parameters:
identifier
- the identifier of the data pointvalue
- the value of the data pointstruct
- the struct to use to serialize the objects
-