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
-
Add DogLog to your project if you haven’t already:
-
Create a new file for the AdvantageKit
Logger
shim:Directorysrc
Directorymain
Directorydeploy/
- …
Directoryjava/
Directoryfrc/
- …
Directoryorg
Directorylittletonrobotics
Directoryjunction
- Logger.java Create this file
-
In the newly created file, paste the following code:
-
Remove AdvantageKit from your project