java中使用log4j日誌文件,讀取配置文件的方式

         public void init() {//該方法必須在所有log4j使用前調用 最好時初始化時就調用執行 加載好配置                                                     Properties props  =   new  Properties();//創建一個系統參數對象               try  {      
相關文章
相關標籤/搜索