I had to add super(this) in a required constructor, but that seems to work, thank you.
Thank you, Jay Turner -----Original Message----- From: Scott Deboy [mailto:[email protected]] Sent: Friday, July 15, 2011 11:12 PM To: Log4J Users List Subject: Re: I need to handle log4j:WARN Unrecognized element param Good point :) Try this: public class MyLoggerRepository extends Hierarchy implements UnrecognizedElementHandler{ ... add your unrecognized element handler here, should be all you need } public class MyRepositorySelector implements RepositorySelector { private final LoggerRepository repository = new MyLoggerRepository(); public LoggerRepository getLoggerRepository(){ return repository; } Hopefully that's it? Scott On Fri, Jul 15, 2011 at 7:51 PM, Turner, Jay <[email protected]>wrote: > I had already looked at LoggerRepositoryExImpl. The documentation says it > is part of org.apache.log4j but IntelliJ doesn't see it. I tried > org.apache.log4j.spi but it wasn't there either. I grep'd log4j-1.2.15.jar > and it has four "LoggerRepository"s but not even any "LoggerRepositoryEx"s. > Besides, it's a final class. I found the 698 lines of the > LoggerRepositoryExImpl java source from Apache, but copying it just to parse > some extra elements seems - like using a chainsaw to trim my nails. > > Thank you, > Jay Turner > > -----Original Message----- > From: Scott Deboy [mailto:[email protected]] > Sent: Friday, July 15, 2011 8:26 PM > To: Log4J Users List > Subject: Re: I need to handle log4j:WARN Unrecognized element param > > Look at LoggerRepositoryExImpl..you may be able to use it. > > Scott > > On Jul 15, 2011, at 6:20 PM, "Turner, Jay" <[email protected] > > wrote: > > > LoggerRepositoryExImpl > > --------------------------------------------------------------------- > 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]
