log4jdbc - In log4j, can the level of a child logger be higher than the root logger's priority value? -


can level of child logger higher root logger's priority value?

my configuration below. package net.sf.log4jdbc still prints info level logs. didn't intend line of unimportant net.sf.log4jdbc logs shown, though.

<?xml version="1.0" encoding="utf-8"?> <!doctype log4j:configuration system "log4j.dtd" >  <log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/">      <!-- appenders -->     <appender name="console" class="org.apache.log4j.consoleappender">         <param name="target" value="system.out" />         <layout class="org.apache.log4j.patternlayout">             <param name="conversionpattern" value="%d %-5p| %m %c%n" />         </layout>     </appender>      <logger name="net.sf.log4jdbc">         <level value="warn" />     </logger>      <!-- root logger -->     <root>         <priority value="debug" />         <appender-ref ref="console" />     </root> </log4j:configuration> 

what need print logs of debug or higher level except packages higher log level set?


Comments

Popular posts from this blog

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

How to get the ip address of VM and use it to configure SSH connection dynamically in Ansible -

javascript - Get parameter of GET request -