Package edu.wpi.first.epilogue.logging
Class LazyBackend
java.lang.Object
edu.wpi.first.epilogue.logging.LazyBackend
- All Implemented Interfaces:
EpilogueBackend
A backend implementation that only logs data when it changes. Useful for keeping bandwidth and
file sizes down. However, because it still needs to check that data has changed, it cannot avoid
expensive sensor reads.
-
Constructor Summary
ConstructorsConstructorDescriptionLazyBackend(EpilogueBackend backend) Creates a new lazy backend wrapper around another backend. -
Method Summary
Modifier and TypeMethodDescriptionGets a backend that can be used to log nested data underneath a specific path.lazy()Creates a lazy version of this backend.voidLogs a boolean data point.voidLogs a boolean array data point.voidLogs a raw byte array data point.voidLogs a 64-bit floating point data point.voidLogs a 64-bit floating point array data point.voidLogs a 32-bit floating point data point.voidLogs a 32-bit floating point array data point.voidLogs a 32-bit integer data point.voidLogs a 32-bit integer array data point.voidLogs a 64-bit integer data point.voidLogs a 64-bit integer array data point.voidLogs a text data point.voidLogs a string array data point.<S> voidLogs an array of struct-serializable objects.<S> voidLogs a struct-serializable object.
-
Constructor Details
-
LazyBackend
Creates a new lazy backend wrapper around another backend.- Parameters:
backend- the backend to delegate to
-
-
Method Details
-
lazy
Description copied from interface:EpilogueBackendCreates a lazy version of this backend. A lazy backend will only log data to a field when its value changes, which can help keep file size and bandwidth usage in check. However, there is an additional CPU and memory overhead associated with tracking the current value of every logged entry. The most surefire way to reduce CPU and memory usage associated with logging is to log fewer things - which can be done by opting out of logging unnecessary data or increasing the minimum logged importance level in the Epilogue configuration.- Specified by:
lazyin interfaceEpilogueBackend- Returns:
- the lazy backend
-
getNested
Description copied from interface:EpilogueBackendGets a backend that can be used to log nested data underneath a specific path.- Specified by:
getNestedin interfaceEpilogueBackend- Parameters:
path- the path to use for logging nested data under- Returns:
- the nested backend
-
log
Description copied from interface:EpilogueBackendLogs a 32-bit integer data point.- Specified by:
login interfaceEpilogueBackend- Parameters:
identifier- the identifier of the data pointvalue- the value of the data point
-
log
Description copied from interface:EpilogueBackendLogs a 64-bit integer data point.- Specified by:
login interfaceEpilogueBackend- Parameters:
identifier- the identifier of the data pointvalue- the value of the data point
-
log
Description copied from interface:EpilogueBackendLogs a 32-bit floating point data point.- Specified by:
login interfaceEpilogueBackend- Parameters:
identifier- the identifier of the data pointvalue- the value of the data point
-
log
Description copied from interface:EpilogueBackendLogs a 64-bit floating point data point.- Specified by:
login interfaceEpilogueBackend- Parameters:
identifier- the identifier of the data pointvalue- the value of the data point
-
log
Description copied from interface:EpilogueBackendLogs a boolean data point.- Specified by:
login interfaceEpilogueBackend- Parameters:
identifier- the identifier of the data pointvalue- the value of the data point
-
log
Description copied from interface:EpilogueBackendLogs a raw byte array data point. NOTE: serializable data should be logged usingEpilogueBackend.log(String, Object, Struct).- Specified by:
login interfaceEpilogueBackend- Parameters:
identifier- the identifier of the data pointvalue- the value of the data point
-
log
Description copied from interface:EpilogueBackendLogs a 32-bit integer array data point.- Specified by:
login interfaceEpilogueBackend- Parameters:
identifier- the identifier of the data pointvalue- the value of the data point
-
log
Description copied from interface:EpilogueBackendLogs a 64-bit integer array data point.- Specified by:
login interfaceEpilogueBackend- Parameters:
identifier- the identifier of the data pointvalue- the value of the data point
-
log
Description copied from interface:EpilogueBackendLogs a 32-bit floating point array data point.- Specified by:
login interfaceEpilogueBackend- Parameters:
identifier- the identifier of the data pointvalue- the value of the data point
-
log
Description copied from interface:EpilogueBackendLogs a 64-bit floating point array data point.- Specified by:
login interfaceEpilogueBackend- Parameters:
identifier- the identifier of the data pointvalue- the value of the data point
-
log
Description copied from interface:EpilogueBackendLogs a boolean array data point.- Specified by:
login interfaceEpilogueBackend- Parameters:
identifier- the identifier of the data pointvalue- the value of the data point
-
log
Description copied from interface:EpilogueBackendLogs a text data point.- Specified by:
login interfaceEpilogueBackend- Parameters:
identifier- the identifier of the data pointvalue- the value of the data point
-
log
Description copied from interface:EpilogueBackendLogs a string array data point.- Specified by:
login interfaceEpilogueBackend- Parameters:
identifier- the identifier of the data pointvalue- the value of the data point
-
log
Description copied from interface:EpilogueBackendLogs a struct-serializable object.- Specified by:
login 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:EpilogueBackendLogs an array of struct-serializable objects.- Specified by:
login 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
-