<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>rexis.cn &#187; JAVA log4j</title>
	<atom:link href="http://blog.rexis.cn/tag/java-log4j/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.rexis.cn</link>
	<description>一张相片 一段故事</description>
	<lastBuildDate>Fri, 02 Jul 2010 04:25:54 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>log4j配置环境变量迂回法</title>
		<link>http://blog.rexis.cn/2009/05/30/log4j%e9%85%8d%e7%bd%ae%e7%8e%af%e5%a2%83%e5%8f%98%e9%87%8f%e8%bf%82%e5%9b%9e%e6%b3%95/</link>
		<comments>http://blog.rexis.cn/2009/05/30/log4j%e9%85%8d%e7%bd%ae%e7%8e%af%e5%a2%83%e5%8f%98%e9%87%8f%e8%bf%82%e5%9b%9e%e6%b3%95/#comments</comments>
		<pubDate>Fri, 29 May 2009 18:10:53 +0000</pubDate>
		<dc:creator>北</dc:creator>
				<category><![CDATA[program]]></category>
		<category><![CDATA[JAVA log4j]]></category>

		<guid isPermaLink="false">http://rexis.cn/blog/?p=81</guid>
		<description><![CDATA[在log4j.properties中配置输入文件 log4j.appender.A1.File= ${JBOSS_HOME}/server/default/log/my.log JAVA中加载配置 //从系统环境变量中取出JBOSS_HOME路径设置为系统property System.setProperty(&#8220;JBOSS_HOME&#8221;, System.getenv(&#8220;JBOSS_HOME&#8221;)); //读取log4j配置 PropertyConfigurator.configure(this.class.getResource(“/”).getPath() + “log4j.properties”); logger = Logger.getLogger(this.class);]]></description>
			<content:encoded><![CDATA[<p>在log4j.properties中配置输入文件<br />
log4j.appender.A1.File= ${JBOSS_HOME}/server/default/log/my.log</p>
<p>JAVA中加载配置<br />
//从系统环境变量中取出JBOSS_HOME路径设置为系统property<br />
System.setProperty(&#8220;JBOSS_HOME&#8221;, System.getenv(&#8220;JBOSS_HOME&#8221;));<br />
//读取log4j配置<br />
PropertyConfigurator.configure(this.class.getResource(“/”).getPath() + “log4j.properties”);<br />
logger = Logger.getLogger(this.class);</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.rexis.cn/2009/05/30/log4j%e9%85%8d%e7%bd%ae%e7%8e%af%e5%a2%83%e5%8f%98%e9%87%8f%e8%bf%82%e5%9b%9e%e6%b3%95/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
