Can you tell mw the link to examples/customlevel?

----- Original Message -----
From: <[EMAIL PROTECTED]>
To: "Log4J Users List" <[EMAIL PROTECTED]>
Sent: Tuesday, February 26, 2002 4:56 PM
Subject: Re: How can I defined multiple DEBUG level ?


>
> If you just need to add more verbosity during development, you may be able
> to get away with just adding more appenders. I created two different
levels
> of debug verbosity by creating a quickDebug appender and a fullDebug
> appender. There may be a better solution previously discussed in the
> mailing list archives if you dig, but this was a quick and easy solution
> for us to spend less time worrying about logging, and more elsewhere.
>
> As you can see below, the 2nd has a little bit more info than the first.
>
> Quick Debug:
> <appender class="org.apache.log4j.RollingFileAppender" name="QUICKDEBUG">
> <param name="File" value="log/quickdebug.log"/>
> <param name="Append" value="true"/>
> <param name="MaxFileSize" value="12000KB"/>
> <param name="MaxBackupIndex" value="3"/>
> <layout class="org.apache.log4j.PatternLayout">
> <param name="ConversionPattern" value="##############%n# Time_Logged =
%d{HH:mm:ss,SSS}%n# MESSAGE = %m%n# Thread=[%t]%n# Priority=%-5p%n# Logger
> =%c{3}%n# Line_No=%L%n##############%n %n"/>
> </layout>
>
> Full Debug:
> <appender class="org.apache.log4j.RollingFileAppender" name="FULLDEBUG">
> <param name="File" value="log/fullDebug.log"/>
> <param name="Append" value="true"/>
> <param name="MaxFileSize" value="12000KB"/>
> <param name="MaxBackupIndex" value="5"/>
> <layout class="org.apache.log4j.PatternLayout">
> <param name="ConversionPattern" value="##############%n# TIME LOGGED =
%d{HH:mm:ss,SSS}%n# MESSAGE = %m%n# CLASS=%C%n# LOCATION=%l%n# STACK=%x%n#
> Thread=[%t]%n# Priority=%-5p%n# Logger=%c{3}%n#
Line_No=%L%n##############%n %n"/>
> </layout>
> </appender>
>
> If you need much more than this, there is an example source file on
> extending the Level class called XLevel in the examples/customlevel
> subdirectory of the latest 1.2 beta release. Not much in the way of
> comments in there, but it's probably a good place to start.
>
> -Manish
>
>
>
>
>
>
>
> Leandro Rodrigo Saad Cruz <[EMAIL PROTECTED]> on 02/26/2002
05:02:31
> PM
>
> Please respond to "Log4J Users List" <[EMAIL PROTECTED]>
>
> To:   Log4J Users List <[EMAIL PROTECTED]>
> cc:
>
> Subject:  Re: How can I defined multiple DEBUG level ?
>
>
> I've never done this but it's a need for me too
>
> On Tue, 2002-02-26 at 12:59, Martin Mailloux wrote:
> > >From the documentation :
> >
> > Loggers may be assigned levels. The set of possible levels, that is
> > DEBUG, INFO, WARN, ERROR and FATAL are defined in the
> > org.apache.log4j.Level class. Although we do not encourage you from
> > doing so, you may define your own levels by sub-classing the Level
> > class. A perhaps better approach is will be explained later on.
> >
> > I did not find in the documentation a direct way to add my own levels.
> >
> > I'm interested in adding more Debug levels (1-5), with different level
> > of verbosity, from less to the most verbose.
> >
> > Thanks.
> > Martin
> >
> >
> > --
> > To unsubscribe, e-mail:   <
> mailto:[EMAIL PROTECTED]>
> > For additional commands, e-mail: <
> mailto:[EMAIL PROTECTED]>
> --
> Leandro Rodrigo Saad Cruz
> IT - Inter Business Tecnologia e Servicos (IB)
> http://www.ibnetwork.com.br
>
>
> --
> To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]
> >
> For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]
> >
>
>
>
>
>
>
>
>
> --
> To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>
>
>


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

Reply via email to