You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 26, 2019. It is now read-only.
AMMack26 edited this page Feb 6, 2016
·
30 revisions
When to Log
Initialization of a Command
Command interruption
Subsystem methods
The execute function of a Command when it doesn't repeat
When Not to Log
The execute function of a Command when it constantly repeats
How to Log
Add logger to top of class file like below. Replace with the class name. Logger logger = Robot.getLogger(<Class>.class);
Use logger by calling the logger.info() or logger.fine() methods.
Example Initializing log statement in the initialize method of a Command: logger.info("[Initializing: <ClassName>]");
Example Initializing log statement in the method of the Climber Subsystem. Posts what it is doing and some info on the status of the subsystem: logger.fine("Latch Released: " + "ArmLatch=" + armLatch.get());");