Hey Peter

They are there since when log4net was invented and they are not
undocumented. See:

http://logging.apache.org/log4net/release/sdk/index.html

Those levels are part of the public API and allow people to implement finer
granularity of logging events in cases where trace, debug, info, warn, error
and fatal are not enough. You may notice that the constructor of Level
allows to create even more levels than those 13 (up to 2^32 minus 2; i.e.
4294967292).

If there are real-world use cases for so many log levels is written on
another piece of paper. But from a framework-point-of-view it is good to
support them in case someone needs them.

Cheers

>-----Ursprüngliche Nachricht-----
>Von: Howe, Peter L [mailto:ph...@paychex.com]
>Gesendet: Donnerstag, 12. September 2013 22:48
>An: Log4NET Dev
>Betreff: Question on some undocumented logging levels
>
>While debugging some of my logging code, I inadvertently discovered that
>there are some "hidden" logging levels:
>
>    // log4net.Core.Level.All.Value               = -2147483648
>    // log4net.Core.Level.Finest.Value    =  10000 **
>    // log4net.Core.Level.Verbose.Value           =  10000 **
>    // log4net.Core.Level.Finer.Value     =  20000 **
>    // log4net.Core.Level.Trace.Value     =  20000 **
>    // log4net.Core.Level.Debug.Value     =  30000
>    // log4net.Core.Level.Fine.Value              =  30000 **
>    // log4net.Core.Level.Info.Value      =  40000
>    // log4net.Core.Level.Notice.Value    =  50000 **
>    // log4net.Core.Level.Warn.Value      =  60000
>    // log4net.Core.Level.Error.Value     =  70000
>    // log4net.Core.Level.Severe.Value    =  80000 **
>    // log4net.Core.Level.Critical.Value          =  90000 **
>    // log4net.Core.Level.Alert.Value     =  100000 **
>    // log4net.Core.Level.Fatal.Value     =  110000
>    // log4net.Core.Level.Emergency.Value  = 120000 **
>    // log4net.Core.Level.Off.Value               =  2147483647
>
>    // ** Undocumented / Unreleased
>
>I am not trying to "out" any of your secrets :-), I am just wondering if
these are
>for some future use or functionality.
>
>Thanks,
>Peter
>
>
>
>The information contained in this message may be privileged, confidential
and
>protected from disclosure. If the reader of this message is not the
intended
>recipient, or an employee or agent responsible for delivering this message
to
>the intended recipient, you are hereby notified that any dissemination,
>distribution or copying of this communication is strictly prohibited. If
you have
>received this communication in error, please notify your representative
>immediately and delete this message from your computer. Thank you.

Reply via email to