Changing System.out for Logging