An example of a program providing the functionality of logging
import java.util.logging.Logger; public class Main{ public static void main(String[] args) { Logger log = Logger.getLogger("com.mycompany.BasicLogging"); log.severe("severe message"); log.warning("warning message"); log.info("info message"); log.config("config message"); log.fine("fine level one message"); log.finer("fine level two message"); log.finest("fine level three message"); } }