art*_*urh 5 java tomcat osgi log4j equinox
使用equinox servlet桥部署我的OSGi Web应用程序时,我得到以下内容:
log4j:WARN No appenders could be found for logger (org.springframework.osgi.extender.internal.activator.ContextLoaderListener).
log4j:WARN Please initialize the log4j system properly.
Run Code Online (Sandbox Code Playgroud)
我尝试了几种提供必要的"log4j.properties"文件的方法,包括:
当然我也有一个片段包,用log4j.properties文件扩展log4j包,但看起来这个log4j包没有被使用.
补充:我应该补充一点,我正在Eclipse中开发应用程序......我的片段包用于配置log4j/slf4j.
有人解决了这个吗?有任何想法吗?