Logging with Java When writing applications in Java it is incredibly useful to print out information as you go a long so that you can track what your application is doing and the state of various different variables. One method of doing this is to use print statements, however, when it comes time to package your code into an application, you have to track down and delete/comment out all of these print statements.