<?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"
	>
<channel>
	<title>Comments on: Changing Logging Behavior of Rails via Extensions</title>
	<atom:link href="http://www.nomachetejuggling.com/2008/02/01/changing-logging-behavior-of-rails-via-extensions/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.nomachetejuggling.com/2008/02/01/changing-logging-behavior-of-rails-via-extensions/</link>
	<description>How a random programmer views the world.</description>
	<pubDate>Thu, 28 Aug 2008 04:18:24 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5</generator>
		<item>
		<title>By: Joel</title>
		<link>http://www.nomachetejuggling.com/2008/02/01/changing-logging-behavior-of-rails-via-extensions/#comment-31612</link>
		<dc:creator>Joel</dc:creator>
		<pubDate>Fri, 15 Aug 2008 18:56:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.nomachetejuggling.com/2008/02/01/changing-behavior-of-rails-via-extensions/#comment-31612</guid>
		<description>Another thing is I would like to get rid off the 'Completed in..' line in the logs, because I don't need benchmarks for my application. I am benchmarking using around filters and the log entries are unnescessary.

actionpack/lib/action_controller/benchmarking.rb has the code that does the benchmarking, I'm unable to override it for some reason after multiple attempts.

Please send me an email if you do find a work-around.
Thanks!</description>
		<content:encoded><![CDATA[<p>Another thing is I would like to get rid off the &#8216;Completed in..&#8217; line in the logs, because I don&#8217;t need benchmarks for my application. I am benchmarking using around filters and the log entries are unnescessary.</p>
<p>actionpack/lib/action_controller/benchmarking.rb has the code that does the benchmarking, I&#8217;m unable to override it for some reason after multiple attempts.</p>
<p>Please send me an email if you do find a work-around.<br />
Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joel</title>
		<link>http://www.nomachetejuggling.com/2008/02/01/changing-logging-behavior-of-rails-via-extensions/#comment-31611</link>
		<dc:creator>Joel</dc:creator>
		<pubDate>Fri, 15 Aug 2008 18:52:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.nomachetejuggling.com/2008/02/01/changing-behavior-of-rails-via-extensions/#comment-31611</guid>
		<description>Also requiring in environment.rb is unnecessary.
Placing 'extensions.rb' in the lib folder automatically loads/requires it when RAILS boots.

Happy hacking</description>
		<content:encoded><![CDATA[<p>Also requiring in environment.rb is unnecessary.<br />
Placing &#8216;extensions.rb&#8217; in the lib folder automatically loads/requires it when RAILS boots.</p>
<p>Happy hacking</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joel</title>
		<link>http://www.nomachetejuggling.com/2008/02/01/changing-logging-behavior-of-rails-via-extensions/#comment-31610</link>
		<dc:creator>Joel</dc:creator>
		<pubDate>Fri, 15 Aug 2008 18:49:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.nomachetejuggling.com/2008/02/01/changing-behavior-of-rails-via-extensions/#comment-31610</guid>
		<description>I used the same technique before coming to this page..
but one of the reasons I feel this is fragile is because its rails-version-dependent, so when you migrate to a newer rails version in the future, and log_processing expects different parameters or instance variables, then everything breaks and you have to rewrite log_processing.

Neverthless a handy trick.

I have similar overrides for several rails such functions including ones for benchmarking and exception handling

Rails is beautiful because ruby is beautiful. Try doing this in Python or Perl!</description>
		<content:encoded><![CDATA[<p>I used the same technique before coming to this page..<br />
but one of the reasons I feel this is fragile is because its rails-version-dependent, so when you migrate to a newer rails version in the future, and log_processing expects different parameters or instance variables, then everything breaks and you have to rewrite log_processing.</p>
<p>Neverthless a handy trick.</p>
<p>I have similar overrides for several rails such functions including ones for benchmarking and exception handling</p>
<p>Rails is beautiful because ruby is beautiful. Try doing this in Python or Perl!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Georges</title>
		<link>http://www.nomachetejuggling.com/2008/02/01/changing-logging-behavior-of-rails-via-extensions/#comment-27115</link>
		<dc:creator>Georges</dc:creator>
		<pubDate>Fri, 23 May 2008 14:09:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.nomachetejuggling.com/2008/02/01/changing-behavior-of-rails-via-extensions/#comment-27115</guid>
		<description>Many thanks! Very useful post!</description>
		<content:encoded><![CDATA[<p>Many thanks! Very useful post!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jonathan Rochkind</title>
		<link>http://www.nomachetejuggling.com/2008/02/01/changing-logging-behavior-of-rails-via-extensions/#comment-26130</link>
		<dc:creator>Jonathan Rochkind</dc:creator>
		<pubDate>Fri, 25 Apr 2008 19:45:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.nomachetejuggling.com/2008/02/01/changing-behavior-of-rails-via-extensions/#comment-26130</guid>
		<description>I used this technique to _add_ http referer logging to Rails. Seems to work nicely. Or something sort of like this technique: 

application.rb:
  def log_processing
    super
    if logger &#38;&#38; logger.info?
      logger.info("  HTTP Referer: #{request.referer[0..100]}")
    end
  end</description>
		<content:encoded><![CDATA[<p>I used this technique to _add_ http referer logging to Rails. Seems to work nicely. Or something sort of like this technique: </p>
<p>application.rb:<br />
  def log_processing<br />
    super<br />
    if logger &amp;&amp; logger.info?<br />
      logger.info(&#8221;  HTTP Referer: #{request.referer[0..100]}&#8221;)<br />
    end<br />
  end</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ImNotQuiteJack</title>
		<link>http://www.nomachetejuggling.com/2008/02/01/changing-logging-behavior-of-rails-via-extensions/#comment-25733</link>
		<dc:creator>ImNotQuiteJack</dc:creator>
		<pubDate>Fri, 11 Apr 2008 18:08:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.nomachetejuggling.com/2008/02/01/changing-behavior-of-rails-via-extensions/#comment-25733</guid>
		<description>This is a helpful post! I came upon it because I was looking for a way to not log anything for entire controllers. I ended up defining and empty "logger" method for each "silent" controller, but this post will help me tweak my logs in the future. Thanks!</description>
		<content:encoded><![CDATA[<p>This is a helpful post! I came upon it because I was looking for a way to not log anything for entire controllers. I ended up defining and empty &#8220;logger&#8221; method for each &#8220;silent&#8221; controller, but this post will help me tweak my logs in the future. Thanks!</p>
]]></content:encoded>
	</item>
</channel>
</rss>
