Programming with Java, part 10
1.About logI think that the purpose of outputting the log is as follows.・To confirm whether the process was performed when testing the program.・To log a message when an error occurs and use it for investigation.・To record the processing date and time and access status to check for hacking."Log4j" is a representative Java log output, and it isone of the Java logging frameworks. But I think theLogger class in the java.util.logging package is moresuitable for beginners. So let's take a look at theLogger class this time.2.java.util.logging.LoggerThe following program explains how to output logsusing the Logger class.-------------------------- LogTest.java -------------------------------------imp
0