You can do that. See here: <a href="http://logback.qos.ch/manual/jmxConfig.html">http://logback.qos.ch/manual/jmxConfig.html</a> I typically change my logback configuration file on the file system then use jconsole to request that logback reload it. <br>
<br>You may have to jump through some hoops to get jconsole to connect to a running application server. I stuff these in my .bashrc on development box to make it simple:<br> CATALINA_OPTS="-Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=8999 -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=false -Djava.rmi.server.hostname=localhost"<br>
export CATALINA_OPTS<br>Thats about the lease secure way you could setup JMX, but it gets the job done for development.<br><br><br>Just as a side note, <a href="http://logback.qos.ch/manual/index.html">http://logback.qos.ch/manual/index.html</a> links to <a href="http://logback.qos.ch/manual/jmxConfig.html">http://logback.qos.ch/manual/jmxConfig.html</a> as <a href="http://logback.qos.ch/manual/jmxConfigurator.html">http://logback.qos.ch/manual/jmxConfigurator.html</a> which 404s. <br>
<br><div class="gmail_quote">On Wed, Jul 8, 2009 at 5:35 AM, alex <span dir="ltr"><<a href="mailto:alessandro.fustini@dnshosting.it">alessandro.fustini@dnshosting.it</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi,<br>
Is it possible to change at runtime (with no restart the server) the log level for an appender (for example from error to info) ?<br>
If yes is it possible to have some code hints ?<br>
<br>
Thanks a lot for all help<br>
_______________________________________________<br>
Logback-user mailing list<br>
<a href="mailto:Logback-user@qos.ch" target="_blank">Logback-user@qos.ch</a><br>
<a href="http://qos.ch/mailman/listinfo/logback-user" target="_blank">http://qos.ch/mailman/listinfo/logback-user</a><br>
</blockquote></div><br>