Initializing Log4J with Spring?

前端 未结 5 1949
说谎
说谎 2020-11-28 06:30

I have a web app that uses Spring\'s Log4jConfigurer class to initialize my Log4J log factory. Basically it initializes Log4J with a config file that is off th

5条回答
  •  清酒与你
    2020-11-28 07:27

    You can use classpath instead of hardcoded path. It works for me

    
        
        
        
            
                classpath:/conf/log4j.xml
            
        
    
    

提交回复
热议问题