Woops! Forgot to attach config file. Here it be!
jeff
Jeffrey Bonevich wrote:
>
> I was finding it quite frustrating that PropertyConfigurator could not
> handle the advanced feature handled in DOMConfigurator, namely allowing
> the use of custom extensions of the Priority class. I am unable to use
> DOMConfigurator currently in my apps because I rely on some older
> versions of the XML libraries and am bound to those for the near
> future.
>
> See the attached for a cvs diff. Borrowed a lot of code/ideas for this
> from DOMConfigurator. I have tested this using the attached classes
> (test_PropertyConfigurator.java and test_Priority.java) and config file.
>
> Please let me know if there is any additional info needed. I will be
> happy to discuss this further as well.
>
> jeff
>
> --
> Jeffrey & Nikole Bonevich
> Maxmillian Bonevich
> Ann Arbor, Michigan
> [EMAIL PROTECTED]
> http://www.bonevich.com
>
--
Jeffrey & Nikole Bonevich
Maxmillian Bonevich
Ann Arbor, Michigan
[EMAIL PROTECTED]
http://www.bonevich.com
# test config file
log4j.appender.STDOUT=org.apache.log4j.ConsoleAppender
log4j.appender.STDOUT.layout=org.apache.log4j.PatternLayout
log4j.appender.STDOUT.layout.ConversionPattern=%-4r %-5p %c{2} %M.%L %x - %m%n
log4j.rootCategory=TEST1, STDOUT
log4j.priority.rootCategory=test_Priority
log4j.category.test1=TEST2, STDOUT
#log4j.priority.test1=test_Priority
log4j.additivity.test1=false
log4j.category.test2=ERROR, STDOUT
log4j.additivity.test2=false
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]