Skip to content

Migrating from AdvantageKit

DogLog’s AdvantageKitCompatibleLogger class means that it can be used as a drop-in replacement for AdvantageKit logging.

AdvantageKitCompatibleLogger exposes the same exact interface as AdvantageKit’s Logger class, but uses DogLog for all the logging functionality.

Steps

  1. Add DogLog to your project if you haven’t already:

  2. Create a new file for the AdvantageKit Logger shim:

    • Directorysrc
      • Directorymain
        • Directorydeploy/
        • Directoryjava/
          • Directoryfrc/
          • Directoryorg
            • Directorylittletonrobotics
              • Directoryjunction
                • Logger.java Create this file
  3. In the newly created file, paste the following code:

    src/main/java/org/littletonrobotics/junction/Logger.java
    package org.littletonrobotics.junction;
    import dev.doglog.AdvantageKitCompatibleLogger;
    public class Logger extends AdvantageKitCompatibleLogger {}
  4. Remove AdvantageKit from your project