RE: How to use a custom level in logger interface...

2015-04-08 Thread Anthony Francisco
perty. The Logger property is an ILogger that has the Log() method that takes the level value. - Ants -Original Message- From: Brown, Michael A [mailto:[email protected]] Sent: Tuesday, 07 April, 2015 22:57 To: Log4NET User Subject: RE: How to use a custom level in logger interface... Be

Re: How to use a custom level in logger interface...

2015-04-08 Thread Nicholas Dudas
Create a logger for each threshold level and name them appropriately. Nick > On Apr 8, 2015, at 3:57 AM, Brown, Michael A wrote: > > Been a while since I've looked at this, but I think there is a Log() function > which takes a level parameter in addition to the parameters you'd pass to > Erro

RE: How to use a custom level in logger interface...

2015-04-07 Thread karlkras
Hey Michael, not sure what you're referring to... the log.error functions are: void Error(object message); void Error(object message, Exception exception); how can either of these two take a custom level? -- View this message in context: http://apache-logging.6191.n7.nabble.com/How-to-use-a-c

RE: How to use a custom level in logger interface...

2015-04-07 Thread Brown, Michael A
Been a while since I've looked at this, but I think there is a Log() function which takes a level parameter in addition to the parameters you'd pass to Error(). Error() and related methods are just wrappers for Log() that add the appropriate level parameter. So try using Log() and passing in you