log4j.xml validation

2005-12-12 Thread Dirk Ooms
Hi, i am a bit puzzled on how i should do an apriori validation of a log4j.xml in log4j1.3 (without applying it to a LoggerRepository). can I still use the .dtd? but I am wondering whether the .dtd is still in sync with what is happening in the JoranConfigurator, e.g. if i remember well the

Re: Configure two log4j loggers in one application

2005-12-12 Thread Leon Pu
Hi all, could anybody give me hint to get Logger by appender? Best regards, Leon --- Leon Pu [EMAIL PROTECTED] wrote: Hi all, I have two log4j logger classes (own wrapper class to hide log4j for the customer class) in one application, and there are two xml configuration files for the

RE: Configure two log4j loggers in one application

2005-12-12 Thread Bender Heri
you can define as many loggers as you want within one configuration file / jvm. The same is true for appenders. And you are free to attach whatever appender to whatever logger. You even can attach the same appender to two or more different loggers. Your last question (get Logger by appender) I

RE: Configure two log4j loggers in one application

2005-12-12 Thread Leon Pu
Hi Bender, thank you for your reply. I have two services in one application, and I want to save the logs of two different services to different log files. For the different output file name, I have defined them under certain appender in xml configuration file. My question is how can I get the

RE: Configure two log4j loggers in one application

2005-12-12 Thread Bender Heri
Do the two services run in different thread / thread-hierarchies? Heri -Original Message- From: Leon Pu [mailto:[EMAIL PROTECTED] Sent: Monday, December 12, 2005 6:02 PM To: Log4J Users List Subject: RE: Configure two log4j loggers in one application Hi Bender, thank you

RE: Configure two log4j loggers in one application

2005-12-12 Thread Leon Pu
Hi Heri, they are in two sub projects, and will be compiled to two jars. But will be deployed to one war. Best regards, Leon --- Bender Heri [EMAIL PROTECTED] wrote: Do the two services run in different thread / thread-hierarchies? Heri -Original Message- From: Leon Pu

RE: Configure two log4j loggers in one application

2005-12-12 Thread Bender Heri
I never had to deal with jar's in war's. Therefore I don't know what you want to say with this. My question was if the two services are running within separate threads within the same JVM. If this is the case, the solution would be to use a self written repository selector and MDC. The MDC is

RE: Configure two log4j loggers in one application

2005-12-12 Thread Leon Pu
I'm not sure whether these two services run in separate threads, because one service always invokes another one. Leon --- Bender Heri [EMAIL PROTECTED] wrote: I never had to deal with jar's in war's. Therefore I don't know what you want to say with this. My question was if the two services

RE: Configure two log4j loggers in one application

2005-12-12 Thread Bender Heri
Sorry, I not yet understand your problem. Can you explain what do you mean by service? Are they just two different classes? Or packages? Or what? Annother question: At the moment, when you want to call a log function, does the context know which service it is running in? Are there different

RE: Configure two log4j loggers in one application

2005-12-12 Thread Leon Pu
The service in IDE environment is a project. One project depends on another project, they will be compiled to two jars and deployed to same web application. Since they are different projects, so the package are different. The context knows which service it is running on. Different classes tight

Re: log4j.xml validation

2005-12-12 Thread Curt Arnold
Dirk Ooms wrote: Hi, i am a bit puzzled on how i should do an apriori validation of a log4j.xml in log4j1.3 (without applying it to a LoggerRepository). The XML format used by log4j was not designed so that it can be effectively validated using standard XML validation technologies. It