<?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>Ghattu&#039;s Technology Blog &#187; java logging</title>
	<atom:link href="http://ghattus.com/category/java-logging/feed/" rel="self" type="application/rss+xml" />
	<link>http://ghattus.com</link>
	<description>A blog about technology that I work on in my day to day job</description>
	<lastBuildDate>Thu, 03 Dec 2009 00:56:54 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>A real simple way to log</title>
		<link>http://ghattus.com/2009/02/02/a-real-simple-way-to-log/</link>
		<comments>http://ghattus.com/2009/02/02/a-real-simple-way-to-log/#comments</comments>
		<pubDate>Mon, 02 Feb 2009 21:08:00 +0000</pubDate>
		<dc:creator>sghattu</dc:creator>
				<category><![CDATA[java logging]]></category>
		<category><![CDATA[log4j]]></category>
		<category><![CDATA[simple log]]></category>

		<guid isPermaLink="false">http://ghattus.com/2009/02/a-real-simple-way-to-log/</guid>
		<description><![CDATA[Recently I had to add an audit feature in a command line tool that I developed. The requirement is very simple, we need to audit any command that was issued with the tool. The audit log should contain the Time stamp, the logged in user&#8217;s id, the terminal he/she logged in from, the command name [...]]]></description>
			<content:encoded><![CDATA[<p>Recently I had to add an audit feature in a command line tool that I developed. The requirement is very simple, we need to audit any command that was issued with the tool. The audit log should contain the Time stamp, the logged in user&#8217;s id, the terminal he/she logged in from, the command name and any arguments that were passed to the command.</p>
<p><span id="more-39"></span></p>
<p>The log file should rotate if it reaches a certain size. I needed no fancy formatting nor any debug levels, just plain log messages.<br />
As anyone&#8217;s first instinct, I thought I would use Log4J and done with it. I have used Log4J before and did have my share of <a href="http://satya-ghattu.blogspot.com/2006/02/in-case-you-run-into-this-issue.html">difficulties</a>. But on a second thought, do I really need Log4J? My requirement is very very simple and I would like to keep my implementation as simple as possible. I did a quick google search and did hit all the usual suspects, Log4J, SL4J, Java Logging API etc. But the one that really caught my eye is <a href="https://simple-log.dev.java.net/">Simple Log &#8211; anti-logging framework</a>. This was exactly what I was looking for, I glanced over the documentation, downloaded the jar file (~ 21 KB!!) and integrated this with my code. All this took less than 30 minutes and I believe that is really a simple way to log!</p>
]]></content:encoded>
			<wfw:commentRss>http://ghattus.com/2009/02/02/a-real-simple-way-to-log/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

