In Log4Net XML configuration is Priority the same thing as Level?

Posted by Michael Levy on Stack Overflow See other posts from Stack Overflow or by Michael Levy
Published on 2014-06-11T21:20:30Z Indexed on 2014/06/11 21:24 UTC
Read the original article Hit count: 276

I inherited some code that uses the priority element under the root in its xml configuraiton. This is just like the example at http://iserialized.com/log4net-for-noobs/ which shows:

<root>
 <priority value="ALL" />
 <appender-ref ref="LogFileAppender" />
 <appender-ref ref="ConsoleAppender"/>
</root>

However, the log4net configuration examples at http://logging.apache.org/log4net/release/manual/configuration.html always show it using the level element:

<root>
 <level value="DEBUG" />
 <appender-ref ref="A1" />
</root>

In this type of configuration is

<priority>

the same as

<level>

?

Can someone point me to somewhere in the docs where this is explained?

© Stack Overflow or respective owner

Related posts about Xml

Related posts about logging