-
Notifications
You must be signed in to change notification settings - Fork 2
Logging
Ethan Tovell edited this page Feb 23, 2020
·
5 revisions
Before this can be used, please ssh into the robot with the username "admin". Go to /home/lvuser/ and run the commands:
mkdir logs; chmod 777 logs
So basically, to log you need to add these lines to your class.
make this variable:
private Logger logger = Logger.getLogger("SomeNameHere");
add this to the constructor:
logger.addHandler(Config.logFileHandler);
to see how its used, here's the javadoc: https://docs.oracle.com/javase/7/docs/api/java/util/logging/Logger.html
the logs are stored on the roboRIO at /home/lvuser/logs/