No matter what you are doing, getting logged information for debugging or just knowing what's happening is extremely important. In FTC, the way you do that is through telemetry.
Getting Access to telemetry
Like hardwareMap, the telemetry variable is a field of any class that extends OpMode or LinearOpMode. In other words, the telemetry object can be accessed from any OpMode you create.
Sending Telemetry
Telemetry can be sent to the driver hub by calling one of two methods on the telemetry object.
The first method, telemetry.addData, takes in two parameters: the label and the value. It displays a line with the format of label : value.
telemetry.addData("Test Number", 1);
The second method, telemetry.addLine, takes in one parameter and displays it as a line on the driver hub.
telemetry.addLine("Example Line");