日期:2014-05-19 浏览次数:20643 次
Exception in thread "Timer-21" java.lang.NullPointerException at com.daily.report.tools.Log.logInfo(Log.java:14) at com.daily.report.tools.DailyTask.run(DailyTask.java:19) at java.util.TimerThread.mainLoop(Timer.java:512) at java.util.TimerThread.run(Timer.java:462)
import org.apache.log4j.Logger; public class Log { static Logger log = Logger.getLogger(Log.class.getName()); public static void logDebug(String message) { log.debug(message); } public static void logInfo(String message) { log.info(message); } public static void error(String message) { log.error(message); } }