What you have looks right, just do a static initializer block in your
common classes like this:
...
code to get the init file name and prefix
...
static {
PropertyConfigurator.configure(prefix+file);
}It goes in the class/instance data declarations section of your common class. I suppose you could use an init servlet here, but then you would have to deploy your common classes as an app, which I didn't want to do. Btw, if you want to not have all the app logs duplicated in the common class logs, change the common class properties file to use log4j.rootCategory = info, appender list instead of log4j.logger...=info, appender list and that will make the appender in the common class properties file the root one, and you can prevent the other loggers (categories) from logging to the parent (root) more easily. Let me know if you have any other questions. Alison Ortega North Carolina State University ACS Systems Programmer II 919-513-1417 --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
