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
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
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
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
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
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
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
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
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
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
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
11 matches
Mail list logo