<?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/"
	>
<channel>
	<title>Comments on: Logging anti-patterns</title>
	<atom:link href="http://gojko.net/2006/12/09/logging-anti-patterns/feed/" rel="self" type="application/rss+xml" />
	<link>http://gojko.net/2006/12/09/logging-anti-patterns/</link>
	<description>The Quest for Software++</description>
	<pubDate>Wed, 07 Jan 2009 08:58:26 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.7</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Neil Weber</title>
		<link>http://gojko.net/2006/12/09/logging-anti-patterns/comment-page-1/#comment-1756</link>
		<dc:creator>Neil Weber</dc:creator>
		<pubDate>Sat, 20 Jan 2007 00:12:59 +0000</pubDate>
		<guid isPermaLink="false">http://gojko.net/2006/12/09/logging-anti-patterns/#comment-1756</guid>
		<description>CodingMonkey, check out commons logging if you are really concerned about a client of yours wanting to use a different logging framework.

WRT to spreading little bits of logging code throughout your code: that's just the way it is.  Aspects won't be able to insert useful logging messages.  To me this is a non-issue.</description>
		<content:encoded><![CDATA[<p>CodingMonkey, check out commons logging if you are really concerned about a client of yours wanting to use a different logging framework.</p>
<p>WRT to spreading little bits of logging code throughout your code: that&#8217;s just the way it is.  Aspects won&#8217;t be able to insert useful logging messages.  To me this is a non-issue.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Paul Laudeman</title>
		<link>http://gojko.net/2006/12/09/logging-anti-patterns/comment-page-1/#comment-1371</link>
		<dc:creator>Paul Laudeman</dc:creator>
		<pubDate>Sun, 07 Jan 2007 16:24:35 +0000</pubDate>
		<guid isPermaLink="false">http://gojko.net/2006/12/09/logging-anti-patterns/#comment-1371</guid>
		<description>Coding Monkey - excellent observation! You may be interested in exploring the Spring .NET framework. They mention this challenge as a specific example of how aspects can be applied to your code to alleviate you from the monotony of doing it yourself with, of course, the benefit of achieving the separation of concerns, as you mentioned. 

Here's a link to get you started:
http://springframework.net/doc-latest/reference/html/aop.html</description>
		<content:encoded><![CDATA[<p>Coding Monkey - excellent observation! You may be interested in exploring the Spring .NET framework. They mention this challenge as a specific example of how aspects can be applied to your code to alleviate you from the monotony of doing it yourself with, of course, the benefit of achieving the separation of concerns, as you mentioned. </p>
<p>Here&#8217;s a link to get you started:<br />
<a href="http://springframework.net/doc-latest/reference/html/aop.html" rel="nofollow">http://springframework.net/doc-latest/reference/html/aop.html</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: gojko</title>
		<link>http://gojko.net/2006/12/09/logging-anti-patterns/comment-page-1/#comment-583</link>
		<dc:creator>gojko</dc:creator>
		<pubDate>Tue, 19 Dec 2006 08:52:39 +0000</pubDate>
		<guid isPermaLink="false">http://gojko.net/2006/12/09/logging-anti-patterns/#comment-583</guid>
		<description>Hi Coding Monkey,

thanks for the comment. Java 1.4 has a logging api built in, as far as I know, so you can use that without tying your code to any external logging framework (http://java.sun.com/j2se/1.4.2/docs/guide/util/logging/overview.html). This said, I don't know why you are against using logging in your classes - most logging frameworks allow you to specify loggers and configurations in external files, and classes just load the appropriate logger, typically asking for a logger corresponding to their own class name.


gojko</description>
		<content:encoded><![CDATA[<p>Hi Coding Monkey,</p>
<p>thanks for the comment. Java 1.4 has a logging api built in, as far as I know, so you can use that without tying your code to any external logging framework (http://java.sun.com/j2se/1.4.2/docs/guide/util/logging/overview.html). This said, I don&#8217;t know why you are against using logging in your classes - most logging frameworks allow you to specify loggers and configurations in external files, and classes just load the appropriate logger, typically asking for a logger corresponding to their own class name.</p>
<p>gojko</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Coding Monkey</title>
		<link>http://gojko.net/2006/12/09/logging-anti-patterns/comment-page-1/#comment-582</link>
		<dc:creator>Coding Monkey</dc:creator>
		<pubDate>Tue, 19 Dec 2006 08:27:52 +0000</pubDate>
		<guid isPermaLink="false">http://gojko.net/2006/12/09/logging-anti-patterns/#comment-582</guid>
		<description>Some good points herre but one problem I have with logging: it's a cross-cutting concern. I'm not saying don't do it, just that it's a pain...
I've recently just designed a system having read 'head-first design patterns' first. I've tried to isolate change and encapsulate my classes properly and have as few inter-dependancies as possible in my class model.
Everything was fine until I got to logging.
If I sprinkle logging all over my classes they are now not just isolated little bits of neat and reusable code, they do more than just one thing, they also log. This ties that code into the particular logging engine that I'm using, which is a pain for anyone wanting to reuse my code in other projects which use different logging engines, for instace.
Appart from dependancy injection -which I can't use in Java 1.4, easily and appart from using dependancy injection apis, what are my options for avoiding this conflict?
Anyone?</description>
		<content:encoded><![CDATA[<p>Some good points herre but one problem I have with logging: it&#8217;s a cross-cutting concern. I&#8217;m not saying don&#8217;t do it, just that it&#8217;s a pain&#8230;<br />
I&#8217;ve recently just designed a system having read &#8216;head-first design patterns&#8217; first. I&#8217;ve tried to isolate change and encapsulate my classes properly and have as few inter-dependancies as possible in my class model.<br />
Everything was fine until I got to logging.<br />
If I sprinkle logging all over my classes they are now not just isolated little bits of neat and reusable code, they do more than just one thing, they also log. This ties that code into the particular logging engine that I&#8217;m using, which is a pain for anyone wanting to reuse my code in other projects which use different logging engines, for instace.<br />
Appart from dependancy injection -which I can&#8217;t use in Java 1.4, easily and appart from using dependancy injection apis, what are my options for avoiding this conflict?<br />
Anyone?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jeremy Wiebe</title>
		<link>http://gojko.net/2006/12/09/logging-anti-patterns/comment-page-1/#comment-359</link>
		<dc:creator>Jeremy Wiebe</dc:creator>
		<pubDate>Tue, 12 Dec 2006 22:23:01 +0000</pubDate>
		<guid isPermaLink="false">http://gojko.net/2006/12/09/logging-anti-patterns/#comment-359</guid>
		<description>A nice writeup about some good things to keep in mind when logging.  I use log4net almost exclusively for my .NET logging needs and it stacks up really well.   In response to Daniel Pollock's comment to use Enterprise Library I'd just like to say I tried it and found it lacking in a few areas compared to log4net (rolling log files, specifically are not in Ent Lib).  Thanks again.</description>
		<content:encoded><![CDATA[<p>A nice writeup about some good things to keep in mind when logging.  I use log4net almost exclusively for my .NET logging needs and it stacks up really well.   In response to Daniel Pollock&#8217;s comment to use Enterprise Library I&#8217;d just like to say I tried it and found it lacking in a few areas compared to log4net (rolling log files, specifically are not in Ent Lib).  Thanks again.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
