Good Morning Andreas,

Andreas Schildbach wrote:
Hello Boris,

thanks for your answer.

I could not see any error but one:
handlers = 1catalina.org.apache.juli.FileHandler, 2localhost.org.apache.juli.FileHandler, 3app1.org.apache.juli.FileHandler, 4app2.org.apache.juli.FileHandler, java.util.logging.ConsoleHandler
as first line (aside from comments) of your logging.properties.

What is that line good for? How is it different to the ".handlers" line I've already got in my logging.properties?
it declares all handlers for Tomcat-JULI
The dotHandlers (.handlers) is for the root logger.

When I insert your line, the following happens:

Some events are indeed logged to app1.xxx.log and app2.xxx.log. However, most events are logged to catalina.xxx.log.

Here is what goes to the correct log:

Could it be that all libraries I use go to the wrong log?
This depends on the common and shared classloader. Please put any JAR which is not delivered by Tomcat and already there in a default installation in your
WEB-INF/lib folder. Test again.
If that does not help: It may also be usefull to have a logging.properties per webapp (put it into WEB-INF/classes) It should contain any properties which are
needed for your web app but nothing else, i.E.:

handlers=1app1.org.apache.juli.FileHandler
.handler=1app1.org.apache.juli.FileHandler

1app1.org.apache.juli.FileHandler.level = FINE
1app1.org.apache.juli.FileHandler.directory = ${catalina.base}/logs
1app1.org.apache.juli.FileHandler.prefix = app1.

org.apache.catalina.core.ContainerBase.[Catalina].[app1.de].level = INFO
org.apache.catalina.core.ContainerBase.[Catalina].[app1.de].handlers = 1app1.org.apache.juli.FileHandler

The central config/logging.properties must not contain these entries.

Regards
Boris

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to