
Hi All, I have multiple webapps deployed in the same tomcat instance, each with it's own logback.xml, and I'm wondering what will happen if I enable the <jmxConfigurator/> for all of them. Will they all share the same Configurator MBean ? Will I be able to configure the log levels for only one of them ? Thanks a lot, JL

Hello Jean-Luc, Each mbean should register with a different object name depending on the logger context's name. Unfortunately, that name is probably "default" for both of your logback logging context's in each of your two web-applications. Please create a jira issue mentioning this problem so that we can solve it for the next relase. Jean-Luc Geering wrote:
Hi All,
I have multiple webapps deployed in the same tomcat instance, each with it's own logback.xml, and I'm wondering what will happen if I enable the <jmxConfigurator/> for all of them. Will they all share the same Configurator MBean ? Will I be able to configure the log levels for only one of them ?
Thanks a lot, JL
-- Ceki Gülcü Logback: The reliable, generic, fast and flexible logging framework for Java. http://logback.qos.ch

Hi! I would like to point out that I've submitted a patch for this issue - http://jira.qos.ch/browse/LBCLASSIC-61 (also see the discussion at http://www.mail-archive.com/logback-user@qos.ch/msg00474.html ). I'd be really happy to see that patch included in the next release *smile*. Best Regards //Anders 29 okt 2008 kl. 18.14 skrev Ceki Gulcu:
Hello Jean-Luc,
Each mbean should register with a different object name depending on the logger context's name. Unfortunately, that name is probably "default" for both of your logback logging context's in each of your two web-applications.
Please create a jira issue mentioning this problem so that we can solve it for the next relase.
Jean-Luc Geering wrote:
Hi All,
I have multiple webapps deployed in the same tomcat instance, each with it's own logback.xml, and I'm wondering what will happen if I enable the <jmxConfigurator/> for all of them. Will they all share the same Configurator MBean ? Will I be able to configure the log levels for only one of them ?
Thanks a lot, JL
-- Ceki Gülcü Logback: The reliable, generic, fast and flexible logging framework for Java. http://logback.qos.ch _______________________________________________ Logback-user mailing list Logback-user@qos.ch http://qos.ch/mailman/listinfo/logback-user

Duly noted. Thanks Anders. Anders Engström wrote:
Hi!
I would like to point out that I've submitted a patch for this issue - http://jira.qos.ch/browse/LBCLASSIC-61
(also see the discussion at http://www.mail-archive.com/logback-user@qos.ch/msg00474.html ).
I'd be really happy to see that patch included in the next release *smile*.
Best Regards //Anders
29 okt 2008 kl. 18.14 skrev Ceki Gulcu:
Hello Jean-Luc,
Each mbean should register with a different object name depending on the logger context's name. Unfortunately, that name is probably "default" for both of your logback logging context's in each of your two web-applications.
Please create a jira issue mentioning this problem so that we can solve it for the next relase.
Jean-Luc Geering wrote:
Hi All,
I have multiple webapps deployed in the same tomcat instance, each with it's own logback.xml, and I'm wondering what will happen if I enable the <jmxConfigurator/> for all of them. Will they all share the same Configurator MBean ? Will I be able to configure the log levels for only one of them ?
Thanks a lot, JL
-- Ceki Gülcü Logback: The reliable, generic, fast and flexible logging framework for Java. http://logback.qos.ch _______________________________________________ Logback-user mailing list Logback-user@qos.ch http://qos.ch/mailman/listinfo/logback-user
_______________________________________________ Logback-user mailing list Logback-user@qos.ch http://qos.ch/mailman/listinfo/logback-user
-- Ceki Gülcü Logback: The reliable, generic, fast and flexible logging framework for Java. http://logback.qos.ch

I also need a solution which simply uses the servlet context name, which is different for every deployed solution. How can I use a ServletContextListener to configurate the logback/configuration-resource value? Is this what the patch of http://www.mail-archive.com/logback-user@qos.ch/msg00474.html does? If that's the case, please add it and update the documentation how to use it. :) Thank you very much Ingo Ceki Gulcu schrieb:
Duly noted. Thanks Anders.
Anders Engström wrote:
Hi!
I would like to point out that I've submitted a patch for this issue - http://jira.qos.ch/browse/LBCLASSIC-61
(also see the discussion at http://www.mail-archive.com/logback-user@qos.ch/msg00474.html ).
I'd be really happy to see that patch included in the next release *smile*.
Best Regards //Anders
29 okt 2008 kl. 18.14 skrev Ceki Gulcu:
Hello Jean-Luc,
Each mbean should register with a different object name depending on the logger context's name. Unfortunately, that name is probably "default" for both of your logback logging context's in each of your two web-applications.
Please create a jira issue mentioning this problem so that we can solve it for the next relase.
Jean-Luc Geering wrote:
Hi All,
I have multiple webapps deployed in the same tomcat instance, each with it's own logback.xml, and I'm wondering what will happen if I enable the <jmxConfigurator/> for all of them. Will they all share the same Configurator MBean ? Will I be able to configure the log levels for only one of them ?
Thanks a lot, JL
-- Ceki Gülcü Logback: The reliable, generic, fast and flexible logging framework for Java. http://logback.qos.ch _______________________________________________ Logback-user mailing list Logback-user@qos.ch http://qos.ch/mailman/listinfo/logback-user
_______________________________________________ Logback-user mailing list Logback-user@qos.ch http://qos.ch/mailman/listinfo/logback-user
participants (4)
-
Anders Engström
-
Ceki Gulcu
-
Ingo Siebert
-
Jean-Luc Geering