logging-log4net-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From karlkras <karlk...@yahoo.com>
Subject How to use a custom level in logger interface...
Date Tue, 07 Apr 2015 23:13:43 GMT
So I've found a sample that states to add a custom level to the log4net xml
configuration as such:
	        <name value="AUDIT" />
		<value value="80000" />

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

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

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?


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.

View raw message