They are under examples directory (look for subclass
and sublevel dir)

One more question. 
I was trying to run the MyLoggerTest file under
examples dir and go the following exception.
--
log4j: Adding appender named [ConsoleLogger] to
category [root].
log4j:ERROR Did you forget to set the factory in the
config file?
java.lang.ClassCastException: org.apache.log4j.Logger
        at
examples.subclass.MyLoggerTest.main(MyLoggerTest.java:61)
--
I added the following category to xml prop file 

 <categoryFactory
class="examples.subclass.MyLoggerFactory"/>

and still it throws the above error. Don't know why?

But if I use txt based prop file, it doesn't throw the
above error.

Any thoughts?

Thanks.

--- "Lu, David" <[EMAIL PROTECTED]> wrote:
> Hi,
> 
> Can you point me to the examples you are using to
> extend the number of
> priority levels?
> 
> David
> 
> -----Original Message-----
> From: sk k [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, October 01, 2002 2:01 PM
> To: Log4J Users List
> Subject: Extending Log4j
> 
> 
> Hi,
> 
> I am trying to extends log4j to provide custom
> logging
> levels like TRACE etc.
> 
> I have gone through the examples which shows the
> extension mechanism and I have implemented based on
> the samples but my question is
> - How do you add filters to pickup new logging
> levels
> ( TRACE, AUDIT etc) or what changes need to be made
> to
> log4j to pickup the new levels when doing filtering.
> 
>       <filter
> class="org.apache.log4j.varia.LevelRangeFilter">
>          <param name="LevelMin" value="AUDIT" />
>          <param name="LevelMax" value="AUDIT" />
>          <param name="AcceptOnMatch" value="true" />
>       </filter> 
> 
> - By default the DOM configurator is setting the
> filter level to DEBUG and it is not able to see the
> new levels. How can I make the configurator to use
> the
> new levels converter(toLevel method in custom
> classes)
> while mapping from string to level objects.
> 
> Thanks
> 
> __________________________________________________
> Do you Yahoo!?
> New DSL Internet Access from SBC & Yahoo!
> http://sbc.yahoo.com
> 
> --
> To unsubscribe, e-mail:  
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
> 
> 
>
**********************************************************************
> This message, including any attachments, contains
> confidential information intended for a specific
> individual and purpose, and is protected by law.  If
> you are not the intended recipient, please contact
> sender immediately by reply e-mail and destroy all
> copies.  You are hereby notified that any
> disclosure, copying, or distribution of this
> message, or the taking of any action based on it, is
> strictly prohibited.
> TIAA-CREF
>
**********************************************************************
> 
> --
> To unsubscribe, e-mail:  
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
> 


__________________________________________________
Do you Yahoo!?
New DSL Internet Access from SBC & Yahoo!
http://sbc.yahoo.com

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

Reply via email to