> -----Original Message-----
> From: Ron Grabowski [mailto:[EMAIL PROTECTED] 
> Sent: 30 September 2005 21:20
> To: Log4NET User
> Subject: RE: Custom logging level
> 
> Didn't log4j implement this as part of their 1.2.x tree? 
> Guess what my next question is... :-)

log4j 1.2.12 added support for the Trace level and exposed Trace methods in the 
Logger API. There seems to have been a strong request in the log4j community 
for this feature (or at least strongly advocated by a few users). Ceki was keen 
on another new feature he called 'domains' (which has not been implemented and 
as far as I can see is not explained or documented anywhere) which would remove 
the need for adding in extra levels to the core code.

I have not seen a great deal of demand for a Trace level from the log4net 
community, but I have seen a lot of requests for custom levels (all different). 
So I think our focus should be on enabling custom levels to be implemented by 
users more easily. This may require some examination of the way we work with 
levels and some additional documentation.

The current Trace extension serves as the best end user documentation we have 
on how to build a custom level.

Also there may need to be a debate as to the relative ordering of the Debug and 
Trace levels. In log4j Trace is a lower level than Debug. I suspect that this 
is because Trace was added later as a fine grained Debug, 'Trace' was chosen as 
a convenient name.
In the .NET System.Diagnostics namespace the Trace class is enabled for both 
debug and release builds but the Debug class is only enabled for debug builds, 
so Trace is effectively a higher level than Debug here.

Cheers,
Nicko

> 
> --- Nicko Cadell <[EMAIL PROTECTED]> wrote:
> 
> > There is an example of how to add the TRACE level to log4net in the 
> > log4net download at:
> > 
> > extensions\net\1.0\log4net.Ext.Trace\cs\src
> > 
> > Cheers,
> > Nicko
> > 
> > > -----Original Message-----
> > > From: Søren M. Olesen [mailto:[EMAIL PROTECTED]
> > > Sent: 29 September 2005 06:50
> > > To: [email protected]
> > > Subject: Custom logging level
> > > 
> > > Hi
> > > 
> > > I been trying to figure out how to make a custum debug level, but 
> > > haven't succeded yet...anyone who has an example or know where to 
> > > find an example, that they'd like to share with me....
> > > 
> > > TIA
> > > 
> > > Søren
> > > 
> > > 
> > > 
> > 
> 
> 
> 

Reply via email to