[問題] Log Forging 解決方式消失

看板java作者時間9年前 (2016/07/05 06:10), 9年前編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/1
以下是我的程式碼,但在this.logger我會碰到 有Log Forging 的問題,我有上網找過 http://www.jtmelton.com/2010/09/21/preventing-log-forging-in-java/ 但這好像需要import相關jar檔,因此我想請問一下,有無大大知道相關解法, 在此先說聲謝謝 private void dotest(String message,int test){ switch(test){ case a: this.logger.warn(message); break; case b: this.logger.warn(message); break; case c: this.logger.warn(message); break; case d: this.logger.warn(message); break; case e: this.logger.warn(message); break; default: this.logger.warn(message); break; } } -- ※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 49.159.10.95 ※ 文章網址: https://www.ptt.cc/bbs/java/M.1467670238.A.B33.html ※ 編輯: nicknick196 (49.159.10.95), 07/05/2016 06:14:09
文章代碼(AID): #1NUjxUip (java)