WARN Continuable parsing error 43 and column 23

log4j.xml的配置问题

WARN The content of element type "log4j:configuration" must match "(renderer*,appender*,plugin*,(category|logger)*,root?,(categoryFactory|loggerFactory)?)".


把logger节点放到root上面就可以了


<logger name="funcode" additivity="false"> 
        <level value="info" /> 
        <appender-ref ref="file"/>  
    </logger>
    
    <logger name="funcode.udp" additivity="false"> 
        <level value="debug" /> 
        <appender-ref ref="console"/>  
    </logger>   


    <!-- logger的设置-->  
    <root> 
        <priority value ="info"/>  
        <appender-ref ref="console"/>  
    </root>

你可能感兴趣的:(WARN Continuable parsing error 43 and column 23)