Look for XLevel.java in log4j distribution directory like :

logging-log4j-1.2.9\examples\customLevel

Then the trick to using it is to specify the level with the name of
the level plus # plus fully qualified classname like:

log4j.rootLogger=TRACE#customlevel.XLevel, STDOUT

On 6/23/05, Joseph Sartre <[EMAIL PROTECTED]> wrote:
> I really can't find anything really clear enough. Anybody have any
> suggestions about where I can find something or how i could create this
> custom level which would be configurable from an xml config file?
> 
> Thanks very much
> 
> Joseph
> 
> -----------
> Alternative email: [EMAIL PROTECTED]
> Personal Website: http://www.yussef.no-ip.com
> Mobile UK: +447704456081
> Mobile FR: +33665668941
> 
> 
> 
> >From: James Stauffer <[EMAIL PROTECTED]>
> >Reply-To: James Stauffer <[EMAIL PROTECTED]>
> >To: Log4J Users List <[email protected]>
> >Subject: Re: Creating custom levels
> >Date: Wed, 22 Jun 2005 09:24:05 -0500
> >
> >Yes it is possible, but I don't see the info after a quick search.
> >Many people add a trace level so search on that may help.
> >
> >On 6/22/05, Joseph Sartre <[EMAIL PROTECTED]> wrote:
> > > Does anyone know if we can create custom levels in log4j.
> > > If it is possible, how do we create them?
> > > Thanks a lot
> > >
> > > Joseph
> > >
> > >
> > > -----------
> > > Alternative email: [EMAIL PROTECTED]
> > > Personal Website: http://www.yussef.no-ip.com
> > > Mobile UK: +447704456081
> > > Mobile FR: +33665668941
> > >
> > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mai

l: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> > >
> >
> >
> >--
> >James Stauffer
> >Are you good? Take the test at http://www.livingwaters.com/good/
> >
> >---------------------------------------------------------------------
> >To unsubscribe, e-mail: [EMAIL PROTECTED]
> >For additional commands, e-mail: [EMAIL PROTECTED]
> >
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to