example of how to user java logging. Please don't use printf anymore