package com.cnse.log.jdkLog; import java.util.logging.Logger; //this is jdkLog useing public class JdkLog { static Logger logger=Logger.getLogger(JdkLog.class.getName()); public void getLogInfo(String msg){ logger.info(msg); logger.info("這是jkd自帶的日誌記錄工具..."); } public static void main(String[] args) { JdkLog jklog=new JdkLog(); jklog.getLogInfo("aaa"); } }