<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments on: Log4J Runtime Configuration</title>
	<atom:link href="http://nelz.net/2008/04/08/log4j-runtime-configuration/feed/" rel="self" type="application/rss+xml" />
	<link>http://nelz.net/2008/04/08/log4j-runtime-configuration/</link>
	<description>Ruminations on Development</description>
	<lastBuildDate>Fri, 15 Jul 2011 15:17:31 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
	<item>
		<title>By: Change log4j loglevels runtime &#124; Iamkristian</title>
		<link>http://nelz.net/2008/04/08/log4j-runtime-configuration/#comment-416</link>
		<dc:creator><![CDATA[Change log4j loglevels runtime &#124; Iamkristian]]></dc:creator>
		<pubDate>Wed, 27 Apr 2011 12:13:10 +0000</pubDate>
		<guid isPermaLink="false">http://nelznet.wordpress.com/?p=279#comment-416</guid>
		<description><![CDATA[[...] “Nelz” Carpentier posted this piece of jsp &#8211; listed here below, that enables you to change the log4j loglevel runtime, instead of [...]]]></description>
		<content:encoded><![CDATA[<p>[...] “Nelz” Carpentier posted this piece of jsp &#8211; listed here below, that enables you to change the log4j loglevel runtime, instead of [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anonymous</title>
		<link>http://nelz.net/2008/04/08/log4j-runtime-configuration/#comment-400</link>
		<dc:creator><![CDATA[Anonymous]]></dc:creator>
		<pubDate>Fri, 07 Jan 2011 07:46:09 +0000</pubDate>
		<guid isPermaLink="false">http://nelznet.wordpress.com/?p=279#comment-400</guid>
		<description><![CDATA[Thanks for this script!

To make it work wherever you want to put it, add the following line at the beginning somewhere and replace the hardcoded &quot;log4jAdmin.jsp&quot; strings with it:

String servletLocation = request.getContextPath() + request.getServletPath();]]></description>
		<content:encoded><![CDATA[<p>Thanks for this script!</p>
<p>To make it work wherever you want to put it, add the following line at the beginning somewhere and replace the hardcoded &#8220;log4jAdmin.jsp&#8221; strings with it:</p>
<p>String servletLocation = request.getContextPath() + request.getServletPath();</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ulrik Skyt</title>
		<link>http://nelz.net/2008/04/08/log4j-runtime-configuration/#comment-319</link>
		<dc:creator><![CDATA[Ulrik Skyt]]></dc:creator>
		<pubDate>Fri, 20 Aug 2010 09:11:38 +0000</pubDate>
		<guid isPermaLink="false">http://nelznet.wordpress.com/?p=279#comment-319</guid>
		<description><![CDATA[Nice script!

I found it useful to add a &quot;Reset Configuration&quot; button, which invokes this code before the rest of the code:

    	if (&quot;resetConfiguration&quot;.equals(targetOperation)) {
    		LogManager.resetConfiguration();
    		URL url = Loader.getResource(&quot;log4j.xml&quot;);
    		DOMConfigurator.configure(url);
    	}]]></description>
		<content:encoded><![CDATA[<p>Nice script!</p>
<p>I found it useful to add a &#8220;Reset Configuration&#8221; button, which invokes this code before the rest of the code:</p>
<p>    	if (&#8220;resetConfiguration&#8221;.equals(targetOperation)) {<br />
    		LogManager.resetConfiguration();<br />
    		URL url = Loader.getResource(&#8220;log4j.xml&#8221;);<br />
    		DOMConfigurator.configure(url);<br />
    	}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nelz</title>
		<link>http://nelz.net/2008/04/08/log4j-runtime-configuration/#comment-44</link>
		<dc:creator><![CDATA[Nelz]]></dc:creator>
		<pubDate>Tue, 09 Sep 2008 22:42:01 +0000</pubDate>
		<guid isPermaLink="false">http://nelznet.wordpress.com/?p=279#comment-44</guid>
		<description><![CDATA[Jon and Sudheer, thank you for your help.  I have updated the code with your suggestions.
]]></description>
		<content:encoded><![CDATA[<p>Jon and Sudheer, thank you for your help.  I have updated the code with your suggestions.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sudheer</title>
		<link>http://nelz.net/2008/04/08/log4j-runtime-configuration/#comment-43</link>
		<dc:creator><![CDATA[Sudheer]]></dc:creator>
		<pubDate>Tue, 05 Aug 2008 17:54:01 +0000</pubDate>
		<guid isPermaLink="false">http://nelznet.wordpress.com/?p=279#comment-43</guid>
		<description><![CDATA[Its a Nice and useful script.
However I ran into a small issue.
Attempting to change the log level on the filtered result set, is not working.
Its becuase of the missing &#039;LogFilterType&#039; parameter in the links.
To fix it, Change the URL part (Line 139) as follows:
Change From:
  String url = &quot;/log4jAdmin.jsp?operation=changeLogLevel&amp;logger=&quot; + loggerName + &quot;&amp;newLogLevel=&quot; + logLevels[cnt] + &quot;&amp;logNameFilter=&quot; + (logNameFilter != null ? logNameFilter : &quot;&quot;);
Change To:
  String url = &quot;/log4jAdmin.jsp?operation=changeLogLevel&amp;logger=&quot; + loggerName + &quot;&amp;newLogLevel=&quot; + logLevels[cnt] + &quot;&amp;logNameFilter=&quot; + (logNameFilter != null ? logNameFilter : &quot;&quot;) + &quot;&amp;logNameFilterType=&quot; + (logNameFilterType != null ? logNameFilterType : &quot;&quot;);
(Add the param &quot;logNameFilterType&quot; in the query string)
]]></description>
		<content:encoded><![CDATA[<p>Its a Nice and useful script.<br />
However I ran into a small issue.<br />
Attempting to change the log level on the filtered result set, is not working.<br />
Its becuase of the missing &#8216;LogFilterType&#8217; parameter in the links.<br />
To fix it, Change the URL part (Line 139) as follows:<br />
Change From:<br />
  String url = &#8220;/log4jAdmin.jsp?operation=changeLogLevel&amp;logger=&#8221; + loggerName + &#8220;&amp;newLogLevel=&#8221; + logLevels[cnt] + &#8220;&amp;logNameFilter=&#8221; + (logNameFilter != null ? logNameFilter : &#8220;&#8221;);<br />
Change To:<br />
  String url = &#8220;/log4jAdmin.jsp?operation=changeLogLevel&amp;logger=&#8221; + loggerName + &#8220;&amp;newLogLevel=&#8221; + logLevels[cnt] + &#8220;&amp;logNameFilter=&#8221; + (logNameFilter != null ? logNameFilter : &#8220;&#8221;) + &#8220;&amp;logNameFilterType=&#8221; + (logNameFilterType != null ? logNameFilterType : &#8220;&#8221;);<br />
(Add the param &#8220;logNameFilterType&#8221; in the query string)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jon Mann</title>
		<link>http://nelz.net/2008/04/08/log4j-runtime-configuration/#comment-42</link>
		<dc:creator><![CDATA[Jon Mann]]></dc:creator>
		<pubDate>Thu, 10 Apr 2008 02:05:23 +0000</pubDate>
		<guid isPermaLink="false">http://nelznet.wordpress.com/?p=279#comment-42</guid>
		<description><![CDATA[Thanks, that is very useful.
There are 2 hard-coded URLs in the page:
 1. &quot;/admin/log4j.do&quot; (line #51)
2. &quot;/log4jAdmin.jsp&quot; (line #140)
After changing both of these, the JSP worked perfectly.
]]></description>
		<content:encoded><![CDATA[<p>Thanks, that is very useful.<br />
There are 2 hard-coded URLs in the page:<br />
 1. &#8220;/admin/log4j.do&#8221; (line #51)<br />
2. &#8220;/log4jAdmin.jsp&#8221; (line #140)<br />
After changing both of these, the JSP worked perfectly.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

