[Log4j] listener order matters

The order of the two listeners ContextLoaderListener and Log4jConfigListener in web.xml [b]does[/b] matter. [b]Log4jConfigListener should be in front of ContextLoaderListener[/b]. Otherwise, the start-up log traces aren't visible and the error below shows up.


log4j:WARN Please initialize the log4j system properly.
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章