>> I'm not entirely sure how to create my loggers such that the repository >> supports LoggerRepositoryEx. Is there something special I need to do in >> the >> log4j.xml file to accomplish this? Are the watchdogs not yet supported? >> > > The problem isn't that your repository doesn't support > LoggerRepositoryEx. The problem is that it is not attached to a > repository at all. log4j 1.3 introduced the Component interface and one > of the essential steps of a component initialization is calling > Component.setLoggerRepository() to connect the component to a > LoggerRepository.
So, if I understand this correctly, I would need to do something like: Logger logger = Logger.get( "logger" ); ComponentBase comp = new ComponentBase(); comp.setLoggerRepository ( logger.getLoggerRepository()); ??? That just doesn't seem right. Seems like I should need to get the ComponentBase from somewhere, but not quite sure from where.... >> If watchdogs are not yet fully supported, how can I programatically >> reload >> my log4j.xml configuration file? >> > > Kamal Ahmed suggested using the DOMConfigurator.configureAndWatch method > in his message. I would suggest using that as we are in the process of > abandoning log4j 1.3 and configureAndWatch is supported in 1.2 and is > likely to be supported in log4j 2.0's compatibility layer. FileWatchdog > seems to be only an implementation detail on log4j 1.3's implementation > of configureAndWatch and is unlikely to be supported in log4j 2.0's > compatibility layer. The problem is that DOMConfiguration.configureAndWatch has seemed to have disappeared from Log4j 1.3 altogether. And the DOMConfiguration has been deprecated in exchange for JoranConfiguration, which also is missing the configureAndWatch method. I had no idea that 1.3 was geared to be discontinued altogether. Should I be abandoning 1.3 completely and revert to 1.2? I see there is still active dev on 1.3, however, so I am confused. Has there been any dev done on 2.0 at all? Thanks for the help! Eric --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
