Skip to main content

PARTs Logger

Explanation & History

As our complexity of our robot grew, logging became important. Not only is it a good source of information for debugging, but the data can also be used for simulation of the robot. Robot simulation is an essential tool in programming and debugging the robot. It allows the programmers to iron out code bugs and test logic flows before they even get the robot. Even better, it's possible to simulate hardware such as motors. Another use for logging is reading the logs after a match.

Code Example

package;

import org.parts3492.partslib.PARTsLogger;

public class MyClass {

    private boolean loggingEnabled = true;
    public boolean myCoolBoolean = true;
    PARTsLogger logger;

    public MyClass() {
        logger = new PARTsLogger("MyClass");

        logger.logBoolean("MyCoolBoolean", myCoolBoolean, loggingEnabled);
    }
}