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:m...@purdue.edu] 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
ers 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 your custom > level. > > From: karlkras [karlk...@yahoo.com] > Sent: Tuesday,

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-

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

2015-04-07 Thread Brown, Michael A
passing in your custom level. From: karlkras [karlk...@yahoo.com] Sent: Tuesday, April 07, 2015 19:13 To: log4net-user@logging.apache.org Subject: How to use a custom level in logger interface... So I've found a sample that states to add a custom level

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

2015-04-07 Thread karlkras
So I've found a sample that states to add a custom level to the log4net xml configuration as such: and I'm guessing I can define my logger to use it like this: ...

RE: Custom level usage

2006-05-28 Thread Nicko Cadell
If you define a custom level then you can log a message using a method like: private static void LogActivity(log4net.ILog log, object message, Exception ex) { log4net.Core.Level activityLevel = log.Logger.Repository.LevelMap["ACTIVITY"]; log.Logger.Log(this.GetType(), activityLeve

Re: Custom level usage

2006-05-25 Thread tinhuty he
Thanks for your reply. I am still confused. As I understood the TRACE extension is needed for previous version of log4net, the latest version doesn't require user to implement custom extension to use a custom level. is that right? = = = Original message = = = You can see an examp

Re: Custom level usage

2006-05-24 Thread Shireesh Thanneru
You can see an example in log4net source code. Look in log4net extensions - they have an example for a TRACE custom log level.tinhuty he <[EMAIL PROTECTED]> wrote: I am using the version 1.2.10. I am not quite sure how to use the custom level. In the previous email I knew that I have to de

Custom level usage

2006-05-24 Thread tinhuty he
I am using the version 1.2.10. I am not quite sure how to use the custom level. In the previous email I knew that I have to define a custom level in config file as follows: I define a log in my class as follows: protected static readonly ILog log = LogManager.GetLogger

RE: custom level

2006-02-23 Thread Nicko Cadell
age- > From: Cheng [mailto:[EMAIL PROTECTED] > Sent: 23 February 2006 17:11 > To: Log4NET User; [EMAIL PROTECTED] > Subject: custom level > > Is there any easy way to add a new level between ERROR and OFF? > > Thanks >

custom level

2006-02-23 Thread Cheng
Is there any easy way to add a new level between ERROR and OFF? Thanks

RE: how to add a custom level?

2005-04-23 Thread Nicko Cadell
at: examples\net\1.0\Extensibility\TraceLogApp\cs Cheers, Nicko > -Original Message- > From: Cheng [mailto:[EMAIL PROTECTED] > Sent: 22 April 2005 22:08 > To: Log4NET User > Subject: how to add a custom level? > > How to add a custom level between FATAL and OFF? > >

how to add a custom level?

2005-04-22 Thread Cheng
How to add a custom level between FATAL and OFF? What I want to do is to create a custom level (to log some statistics information) that will output in all config except OFF. I could use FATAL but this is just misleading since they are not FATAL errors. Thanks

RE: Adding custom level

2004-08-11 Thread Nicko Cadell
tor.Configure(); > > > Nicko > > > -Original Message- > > From: Henrik Johansson [mailto:[EMAIL PROTECTED] > > Sent: 08 August 2004 15:36 > > To: 'log4net-user@logging.apache.org' > > S

RE: Adding custom level

2004-08-11 Thread therealdavidovitz-log4net
ugust 2004 15:36> To: 'log4net-user@logging.apache.org'> Subject: RE: Adding custom level> > Hi,> > From an earlier post:> > >Nik,> >> >There is an example extension in the log4net download that > shows how to > >add a trace level to log4net.> >Have

RE: Adding custom level

2004-08-10 Thread Nicko Cadell
); Nicko > -Original Message- > From: Henrik Johansson [mailto:[EMAIL PROTECTED] > Sent: 08 August 2004 15:36 > To: 'log4net-user@logging.apache.org' > Subject: RE: Adding custom level > > Hi, > > From an earlier post: > > >Nik, > >

RE: Adding custom level

2004-08-08 Thread Henrik Johansson
Hi, >From an earlier post: >Nik, > >There is an example extension in the log4net download that shows how to >add a trace level to log4net. >Have a look in extensions\net\1.0\log4net.Ext.Trace > >Nicko But what if I want to add a new level YYY ? It is not possible to extend the log4net.spi.Leve

RE: Adding custom level

2004-07-30 Thread Nicko Cadell
User; [EMAIL PROTECTED]; > [EMAIL PROTECTED] > Subject: Adding custom level > > Hi, > > How do I add custom level , like TRACE on top of existing > log4net levels ? > I know that in log4j, I can extend Level class. > Does anybody have sample code for log4net to do this ? > > Thank you, > Nik > > > >

RE: Adding custom level

2004-07-08 Thread Dag Christensen
"Test"); Trace is also a predefined level in log4net just like Verbose (see the Level class) I hope this helps, Dag -Original Message- From: Nik Hassan [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 07, 2004 7:24 PM To: Log4NET User; [EMAIL PROTECTED]; [EMAIL PROTECTED] Sub

Adding custom level

2004-07-07 Thread Nik Hassan
Hi, How do I add custom level , like TRACE on top of existing log4net levels ? I know that in log4j, I can extend Level class. Does anybody have sample code for log4net to do this ? Thank you, Nik