Skip to content

Commit

Permalink
Merge branch 'main' into 2027
Browse files Browse the repository at this point in the history
  • Loading branch information
PeterJohnson committed Nov 30, 2024
2 parents 7ae4333 + 5012ad7 commit 847c312
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ private void writeLoggerFile(
out.println();

// @Override
// public void update(DataLogger dataLogger, Foo object) {
// public void update(EpilogueBackend backend, Foo object) {
out.println(" @Override");
out.println(
" public void update(EpilogueBackend backend, " + simpleClassName + " object) {");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public boolean isLoggable(Element element) {

@Override
public String logInvocation(Element element) {
// DataLogger has builtin support for logging measures
// EpilogueBackend has builtin support for logging measures
return "backend.log(\"" + loggedName(element) + "\", " + elementAccess(element) + ")";
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -1488,7 +1488,7 @@ public VectorLogger() {
}
@Override
public void update(DataLogger dataLogger, Vector<?> object) {
public void update(EpilogueBackend backend, Vector<?> object) {
// Implementation is irrelevant
}
}
Expand All @@ -1506,17 +1506,17 @@ class Example {
import edu.wpi.first.epilogue.Logged;
import edu.wpi.first.epilogue.Epilogue;
import edu.wpi.first.epilogue.logging.ClassSpecificLogger;
import edu.wpi.first.epilogue.logging.DataLogger;
import edu.wpi.first.epilogue.logging.EpilogueBackend;
public class ExampleLogger extends ClassSpecificLogger<Example> {
public ExampleLogger() {
super(Example.class);
}
@Override
public void update(DataLogger dataLogger, Example object) {
public void update(EpilogueBackend backend, Example object) {
if (Epilogue.shouldLog(Logged.Importance.DEBUG)) {
Epilogue.vectorLogger.tryUpdate(dataLogger.getSubLogger("vec"), object.vec, Epilogue.getConfig().errorHandler);
Epilogue.vectorLogger.tryUpdate(backend.getNested("vec"), object.vec, Epilogue.getConfig().errorHandler);
}
}
}
Expand All @@ -1543,7 +1543,7 @@ public GenericLogger() {
}
@Override
public void update(DataLogger dataLogger, Generic<T> object) {
public void update(EpilogueBackend backend, Generic<T> object) {
// Implementation is irrelevant
}
}
Expand Down

0 comments on commit 847c312

Please sign in to comment.