<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.0.2" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>Comments on: Log level philosophy</title>
	<link>http://tech.puredanger.com/2008/03/25/log-levels/</link>
	<description>Alex Miller's technical blog</description>
	<pubDate>Thu, 28 Aug 2008 03:34:57 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.0.2</generator>

	<item>
		<title>by: Tims Blog &#187; Blog Archive &#187; Whoops</title>
		<link>http://tech.puredanger.com/2008/03/25/log-levels/#comment-35143</link>
		<pubDate>Fri, 28 Mar 2008 17:00:54 +0000</pubDate>
		<guid>http://tech.puredanger.com/2008/03/25/log-levels/#comment-35143</guid>
					<description>[...] log level philosophy [...]</description>
		<content:encoded><![CDATA[<p>[&#8230;] log level philosophy [&#8230;]
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Brian Hartin</title>
		<link>http://tech.puredanger.com/2008/03/25/log-levels/#comment-34683</link>
		<pubDate>Wed, 26 Mar 2008 17:27:10 +0000</pubDate>
		<guid>http://tech.puredanger.com/2008/03/25/log-levels/#comment-34683</guid>
					<description>I would add TEST, because it's nice to be able to log messages that only appear in the logs created during unit/other automated testing, and are readily identifiable as such (i.e. grep/searching for 'level: TEST', etc.).</description>
		<content:encoded><![CDATA[<p>I would add TEST, because it&#8217;s nice to be able to log messages that only appear in the logs created during unit/other automated testing, and are readily identifiable as such (i.e. grep/searching for &#8216;level: TEST&#8217;, etc.).
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Bill Shirley</title>
		<link>http://tech.puredanger.com/2008/03/25/log-levels/#comment-34660</link>
		<pubDate>Wed, 26 Mar 2008 15:04:07 +0000</pubDate>
		<guid>http://tech.puredanger.com/2008/03/25/log-levels/#comment-34660</guid>
					<description>I totally agree.  One clarification I would add (which you may or mayn't agree with) is that normal situations can throw exceptions, but they must be caught (your password case).  Exceptions are a programmatic mechanism for stealing the execution away from the current location, are perfectly valid for doing so, but in such cases must be caught.  (And reported as an appropriate level log if applicable.)</description>
		<content:encoded><![CDATA[<p>I totally agree.  One clarification I would add (which you may or mayn&#8217;t agree with) is that normal situations can throw exceptions, but they must be caught (your password case).  Exceptions are a programmatic mechanism for stealing the execution away from the current location, are perfectly valid for doing so, but in such cases must be caught.  (And reported as an appropriate level log if applicable.)
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Alex</title>
		<link>http://tech.puredanger.com/2008/03/25/log-levels/#comment-34649</link>
		<pubDate>Wed, 26 Mar 2008 14:17:05 +0000</pubDate>
		<guid>http://tech.puredanger.com/2008/03/25/log-levels/#comment-34649</guid>
					<description>Regarding, open source v proprietary I don't think there's much of a difference but it's an interesting question.  I think in both cases, there should be instructions on how to turn on debug logging.  It's one of my pet peeves that this is such a PITA on so many open source libs. Even in the proprietary world, it's quite common for other teams, field, or customers to need to turn on debug logging so it should be straightforward for them as well.

Regarding internationalization, your question was very clear to me.  In fact, I've &lt;a href=&quot;http://tech.puredanger.com/2007/07/12/should-i-localize-log-messages/&quot; rel=&quot;nofollow&quot;&gt;wrestled with this exact question here before&lt;/a&gt;.  Lots of good comments on that entry.  

Generally, my default answer would be that it's not worth it to do that as (like it or not) English tends to be the lingua franca between programmers.  It's both way more costly (in money and/or time) and way more complicated.  So, unless there were some really strong other reason, I would avoid it.</description>
		<content:encoded><![CDATA[<p>Regarding, open source v proprietary I don&#8217;t think there&#8217;s much of a difference but it&#8217;s an interesting question.  I think in both cases, there should be instructions on how to turn on debug logging.  It&#8217;s one of my pet peeves that this is such a PITA on so many open source libs. Even in the proprietary world, it&#8217;s quite common for other teams, field, or customers to need to turn on debug logging so it should be straightforward for them as well.</p>
<p>Regarding internationalization, your question was very clear to me.  In fact, I&#8217;ve <a href="http://tech.puredanger.com/2007/07/12/should-i-localize-log-messages/" rel="nofollow">wrestled with this exact question here before</a>.  Lots of good comments on that entry.  </p>
<p>Generally, my default answer would be that it&#8217;s not worth it to do that as (like it or not) English tends to be the lingua franca between programmers.  It&#8217;s both way more costly (in money and/or time) and way more complicated.  So, unless there were some really strong other reason, I would avoid it.
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Randall</title>
		<link>http://tech.puredanger.com/2008/03/25/log-levels/#comment-34645</link>
		<pubDate>Wed, 26 Mar 2008 13:57:38 +0000</pubDate>
		<guid>http://tech.puredanger.com/2008/03/25/log-levels/#comment-34645</guid>
					<description>My internationalization question above wasn't too clear.  Let me try it again.

Internationalizing logs is technically not difficult.  My question surrounds whether its appropriate to internationalize finer-grained logging (DEBUG and TRACE)?  Having extra messages expands the localization effort.  And TRACE is really just extensions of the codebase, and you really have to have the code (which is generally in English and not internationalized) to use TRACE messages.  DEBUG is arguably like TRACE, but could be used by users to help understand behavior (and unexpected behavior).</description>
		<content:encoded><![CDATA[<p>My internationalization question above wasn&#8217;t too clear.  Let me try it again.</p>
<p>Internationalizing logs is technically not difficult.  My question surrounds whether its appropriate to internationalize finer-grained logging (DEBUG and TRACE)?  Having extra messages expands the localization effort.  And TRACE is really just extensions of the codebase, and you really have to have the code (which is generally in English and not internationalized) to use TRACE messages.  DEBUG is arguably like TRACE, but could be used by users to help understand behavior (and unexpected behavior).
</p>
]]></content:encoded>
				</item>
</channel>
</rss>
