<?xml version="1.0" encoding="UTF-8"?>

<rss version="2.0"
 xmlns:blogChannel="http://backend.userland.com/blogChannelModule"
>

<channel>
<title>Parallels knowledgebase (KB)</title>
<link>http://kb.parallels.com/</link>
<description>Parallels knowledgebase (KB)</description>
<language>en</language>
<copyright>Copyright 2008 Parallels</copyright>
<pubDate>Wed, 10 Sep 2008 00:00:00 +0600</pubDate>
<lastBuildDate>Wed, 10 Sep 2008 00:00:00 +0600</lastBuildDate>
<webMaster>rt-team@parallels.com</webMaster>

<item>
<title><![CDATA[How do I configure a Tomcat application logging into a separate log file?]]></title>
<link>http://kb.parallels.com/en/1578</link>
<description><![CDATA[<div id="article">
	




	<div id="kb" class="kb">
		<div class="article-container">
			<h2 class="title">How do I configure a Tomcat application logging into a separate log file?</h2>
			<div class="ab-frame"><div class="bl"><div class="br"><div class="tl"><div class="tr"><!-- frame -->
				<div class="articleProperty">
					<div>Article ID: 1578&nbsp;</div>
					<div>Last Review: Oct,6 2008</div>
					<tr>
						<td>Author: </td>
						<td></td>
					</tr>
					<br/>
					<tr>
						<td>Last updated by: </td>
						<td>system</td>
					</tr>
					<strong>APPLIES TO:</strong>
					<div class="articleApplies">
						<ul>
							<li>Parallels Plesk Panel for Linux/Unix</li>
						</ul>
					</div>
				</div><!-- articleProperty -->
			</div></div></div></div></div><!-- frame -->

			<div class="article-internal-flag"></div>

			<div id="article-content">
				<div class="article-part">
					<h2>Resolution</h2>
					<font size="2"><span style="font-family: verdana,arial,helvetica,sans-serif;"><span style="font-style: italic;">&nbsp;</span>To configure logging for an application, you should edit needed Host/Context section in <span style="font-weight: bold;">server.xml</span> to add Logger:<br /><span style="font-style: italic;"><br /></span></span></font><div style="margin-left: 40px;"><font size="2"><span style="font-family: verdana,arial,helvetica,sans-serif;"><span style="font-style: italic;">&lt;Logger className=&quot;org.apache.catalina.logger.FileLogger&quot; prefix=&quot;domain.com_examples_log.&quot; suffix=&quot;.txt&quot; timestamp=&quot;true&quot;/&gt;</span></span></font><br /><font size="2"><span style="font-family: verdana,arial,helvetica,sans-serif;"><span style="font-style: italic;"></span></span></font></div><font size="2"><span style="font-family: verdana,arial,helvetica,sans-serif;"><span style="font-style: italic;"><br /></span></span></font><div class="messagestanza0" style="font-family: verdana,arial,helvetica,sans-serif; font-style: italic;"><font size="2">For example logging directived for the </font><font size="2" style="font-weight: bold;">examples</font><font size="2">&nbsp;</font><font size="2">application on <span style="font-weight: bold;">domain.com </span>should looks like:<br /><br /></font></div><div class="messagestanza0" style="font-family: verdana,arial,helvetica,sans-serif;"><div style="margin-left: 40px;"><font size="2">&lt;Host name=&quot;<span style="font-weight: bold;">domain.com</span>&quot; debug=&quot;0&quot; appBase=&quot;webapps&quot; unpackWARs=&quot;true&quot;&gt;<br /></font></div><div style="margin-left: 80px;"><font size="2">&lt;Context path=&quot;/<span style="font-weight: bold;">examples</span>&quot; docBase=&quot;<span style="font-weight: bold;">examples</span>&quot; debug=&quot;0&quot; reloadable=&quot;true&quot;&gt;<br /></font><div style="margin-left: 40px;"><font size="2">&lt;Logger className=&quot;org.apache.catalina.logger.FileLogger&quot;</font><font size="2"> prefix=&quot;<span style="font-weight: bold;">domain.com_examples_log</span>.&quot; suffix=&quot;.txt&quot; timestamp=&quot;true&quot;/&gt;<br /></font></div><font size="2">&lt;/Context&gt;<br /></font></div><div style="margin-left: 40px;"><font size="2">&lt;/Host&gt;<span style="font-style: italic;"></span><br /></font><font size="2"><span style="font-style: italic;"></span></font></div><font size="2"><span style="font-style: italic;"><br /></span>After that, <span style="font-weight: bold;">&quot;examples&quot;</span> application for <span style="font-weight: bold;">&quot;domain.com&quot;</span> will write log into <span style="font-weight: bold;">&quot;domain.com_examples_log.*&quot;</span> files.</font></div>
<font size="2" style="font-family: verdana,arial,helvetica,sans-serif;"><br />See for more information: </font><font size="2" style="font-family: verdana,arial,helvetica,sans-serif;"><a href="http://kb.parallels.comhttp://www.onjava.com/pub/a/onjava/2002/07/31/tomcat.html?page=1">http://www.onjava.com/pub/a/onjava/2002/07/31/tomcat.html?page=1</a></font><font size="2" style="font-family: verdana,arial,helvetica,sans-serif;"><br /></font>

				</div>
			</div>
		</div><!-- article-container -->


			<br/><br/>

			<div id="SubscriptionLink24Article" class="subscriptionLink2">
<a href="http://kb.parallels.com/subscriptions/index.html?Type=Article&ArticleID=1578&ArticleLanguage=en&Product=&Category="><img src="http://kb.parallels.com/images/mail.png" width="15" height="15" alt="Subscription for changes to this article"></a>
<a href="http://kb.parallels.com/subscriptions/index.html?Type=Article&ArticleID=1578&ArticleLanguage=en&Product=&Category=">Subscription for changes to this article</a>

<script type="text/javascript">

$(document).ready(function() {
	$('#SubscriptionLink24Article a').each(function(){
		$(this).click(function(event) {
			event.preventDefault();
			MainPageContentHide();
			$('#subscription').html('');
			$.get('/Stuff/Subscription', {
													'Type' : 'Article',
													'ArticleID' : '1578',
													'ArticleLanguage' : 'en',
													'Product' : '',
													'Category' : ''
												}, function(data) {
																	$('#subscription').html(data);
																	$('#subscription').show();
																	SUBbuildsubmenus_product();
																});
		});
	});
});

</script>

</div>





	</div><!-- kb -->

</div><!-- article -->


]]></description>
<guid isPermaLink="false">1217 LastUpdated: 2008-10-06 09:11:37</guid>
<pubDate>2008-10-06 09:11:37</pubDate>
</item>
</channel>
</rss>



