So I've found a sample that states to add a custom level to the log4net xml
configuration as such:
        <log4net>
            <level>
                <name value="AUDIT" />
                <value value="80000" />
            </level>

and I'm guessing I can define my logger to use it like this:

...
                <logger name="RollingFile" additivity="False">
                        <level value="AUDIT"/>
                </logger>

in in the C# code, how do I specify to call the logger to call the logger
with the "AUDIT" level? e.g., for an Error level message I perform an
log4net.ILog.Error(...) call.

what do I do for the custom level since this support isn't built in, i.e.,
how/where do I inject the handlers for interact with the log4net process?

thanks...



--
View this message in context: 
http://apache-logging.6191.n7.nabble.com/How-to-use-a-custom-level-in-logger-interface-tp54520.html
Sent from the Log4net - Users mailing list archive at Nabble.com.

Reply via email to