From 06277297fb866fc8f832da72fb3f0acabc41a044 Mon Sep 17 00:00:00 2001 From: Daniel Chen Date: Thu, 12 Dec 2024 20:53:40 -0500 Subject: [PATCH] auto-handling --- .../edu/wpi/first/epilogue/processor/EpilogueGenerator.java | 1 + .../epilogue/{logging/manual => }/ManualLogProcessor.java | 4 +--- .../wpi/first/epilogue/{logging/manual => }/ManualLogged.java | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) rename epilogue-runtime/src/main/java/edu/wpi/first/epilogue/{logging/manual => }/ManualLogProcessor.java (96%) rename epilogue-runtime/src/main/java/edu/wpi/first/epilogue/{logging/manual => }/ManualLogged.java (84%) diff --git a/epilogue-processor/src/main/java/edu/wpi/first/epilogue/processor/EpilogueGenerator.java b/epilogue-processor/src/main/java/edu/wpi/first/epilogue/processor/EpilogueGenerator.java index 24520f5647b..54d28a66362 100644 --- a/epilogue-processor/src/main/java/edu/wpi/first/epilogue/processor/EpilogueGenerator.java +++ b/epilogue-processor/src/main/java/edu/wpi/first/epilogue/processor/EpilogueGenerator.java @@ -188,6 +188,7 @@ public static boolean shouldLog(Logged.Importance importance) { */ """); out.println(" public static void bind(" + robotClassName + " robot) {"); + out.println(" ManualLogProcessor.enable(robot, config);"); out.println(" if (config.loggingPeriod == null) {"); out.println(" config.loggingPeriod = Seconds.of(robot.getPeriod());"); out.println(" }"); diff --git a/epilogue-runtime/src/main/java/edu/wpi/first/epilogue/logging/manual/ManualLogProcessor.java b/epilogue-runtime/src/main/java/edu/wpi/first/epilogue/ManualLogProcessor.java similarity index 96% rename from epilogue-runtime/src/main/java/edu/wpi/first/epilogue/logging/manual/ManualLogProcessor.java rename to epilogue-runtime/src/main/java/edu/wpi/first/epilogue/ManualLogProcessor.java index 0a017f0fdb5..064acb70de3 100644 --- a/epilogue-runtime/src/main/java/edu/wpi/first/epilogue/logging/manual/ManualLogProcessor.java +++ b/epilogue-runtime/src/main/java/edu/wpi/first/epilogue/ManualLogProcessor.java @@ -1,9 +1,7 @@ -package edu.wpi.first.epilogue.logging.manual; +package edu.wpi.first.epilogue; import static edu.wpi.first.wpilibj.Alert.AlertType.kError; -import edu.wpi.first.epilogue.EpilogueConfiguration; -import edu.wpi.first.epilogue.Logged; import edu.wpi.first.epilogue.logging.EpilogueBackend; import edu.wpi.first.epilogue.logging.NullBackend; import edu.wpi.first.wpilibj.Alert; diff --git a/epilogue-runtime/src/main/java/edu/wpi/first/epilogue/logging/manual/ManualLogged.java b/epilogue-runtime/src/main/java/edu/wpi/first/epilogue/ManualLogged.java similarity index 84% rename from epilogue-runtime/src/main/java/edu/wpi/first/epilogue/logging/manual/ManualLogged.java rename to epilogue-runtime/src/main/java/edu/wpi/first/epilogue/ManualLogged.java index 2f4cbf2d6cf..ffa06197ebe 100644 --- a/epilogue-runtime/src/main/java/edu/wpi/first/epilogue/logging/manual/ManualLogged.java +++ b/epilogue-runtime/src/main/java/edu/wpi/first/epilogue/ManualLogged.java @@ -1,4 +1,4 @@ -package edu.wpi.first.epilogue.logging.manual; +package edu.wpi.first.epilogue; import edu.wpi.first.epilogue.logging.EpilogueBackend;