Data Store

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理
// first you need to configure the log4j
// the following step should be done only once for the whole application
String log4jPropertyFile = "log4j.properties";
PropertyConfigurator.configure(log4jPropertyFile);


// get the logger
Logger logger = Logger.getLogger("logger-name");

Core_Logging_Utilities_Class_Diagram

Log4J Link

posted on 2010-01-04 09:44  standlove  阅读(170)  评论(0)    收藏  举报