<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -7,4 +7,38 @@ First you need to generate the migration:
 
   ./script/generate exception_migration
 
-After that, visit /logged_exceptions in your application to manage the exceptions.
\ No newline at end of file
+Next, you'll need to include the ExceptionLoggable module into ApplicationController.  Once that's done you might want to modify key methods to customize the logging:
+
+  render_404(exception) - Shows the 404 template.
+  
+  render_500(exception) - Shows the 500 template.
+  
+  log_exception(exception) - Logs the actual exception in the database.
+  
+  rescue_action_in_public(exception) - Does not log these exceptions: ActiveRecord::RecordNotFound, ActionController::UnknownController, ActionController::UnknownAction
+
+After that, visit /logged_exceptions in your application to manage the exceptions.
+
+It's understandable that you may want to require authentication.  Add this to your config/environments/production.rb:
+
+  # config/environments/production.rb
+  config.after_initialize do
+    require 'application' unless Object.const_defined?(:ApplicationController)
+    LoggedExceptionsController.class_eval do
+      before_filter :login_required
+      protected
+        # only allow admins
+        # this obviously depends on how your auth system works
+        def authorized?
+          current_user.is_a?(Admin)
+        end
+    end
+  end
+
+The exact code of course depends on the specific needs of your application.
+
+CREDITS
+
+Jamis Buck  - original exception_notification plugin
+Rick Olson  - model/controller code
+Josh Goebel - design
\ No newline at end of file</diff>
      <filename>README</filename>
    </modified>
    <modified>
      <diff>@@ -1 +1 @@
-# Include hook code here
\ No newline at end of file
+LoggedExceptionsController.template_root = File.join(directory, 'views')
\ No newline at end of file</diff>
      <filename>init.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,2 +1 @@
-# Install hook code here
 puts IO.read(File.join(File.dirname(__FILE__), 'README'))
\ No newline at end of file</diff>
      <filename>install.rb</filename>
    </modified>
    <modified>
      <diff>@@ -53,14 +53,14 @@ module ExceptionLoggable
     !self.class.local_addresses.detect { |addr| addr.include?(remote) }.nil?
   end
 
-  def render_404
+  def render_404(exception)
     respond_to do |type|
       type.html { render :file =&gt; &quot;#{RAILS_ROOT}/public/404.html&quot;, :status =&gt; &quot;404 Not Found&quot; }
       type.all  { render :nothing =&gt; true, :status =&gt; &quot;404 Not Found&quot; }
     end
   end
 
-  def render_500
+  def render_500(exception)
     respond_to do |type|
       type.html { render :file =&gt; &quot;#{RAILS_ROOT}/public/500.html&quot;, :status =&gt; &quot;500 Error&quot; }
       type.all  { render :nothing =&gt; true, :status =&gt; &quot;500 Error&quot; }
@@ -70,20 +70,22 @@ module ExceptionLoggable
   def rescue_action_in_public(exception)
     case exception
       when ActiveRecord::RecordNotFound, ActionController::UnknownController, ActionController::UnknownAction
-        render_404
+        render_404(exception)
 
       else          
-        render_500
-
-        deliverer = self.class.exception_data
-        data = case deliverer
-          when nil then {}
-          when Symbol then send(deliverer)
-          when Proc then deliverer.call(self)
-        end
-
-        LoggedException.create_from_exception(self, exception)
+        render_500(exception)
+        log_exception(exception)
     end
   end
 
+  def log_exception(exception)
+    deliverer = self.class.exception_data
+    data = case deliverer
+      when nil then {}
+      when Symbol then send(deliverer)
+      when Proc then deliverer.call(self)
+    end
+
+    LoggedException.create_from_exception(self, exception)
+  end
 end</diff>
      <filename>lib/exception_loggable.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,5 +1,4 @@
 class LoggedExceptionsController &lt; ActionController::Base
-  self.template_root = File.join(RAILS_ROOT, 'vendor/plugins/exception_logger/views')
   layout nil
 
   def index</diff>
      <filename>lib/logged_exceptions_controller.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>d2b108761e91740a0cbe2b70fa50aa94c1dadc6e</id>
    </parent>
  </parents>
  <author>
    <name>technoweenie</name>
    <email>technoweenie@567b1171-46fb-0310-a4c9-b4bef9110e78</email>
  </author>
  <url>http://github.com/ryanb/exception_logger/commit/89fee3e9213d3fc6e100e7e9ef435d9dc6ed7d6d</url>
  <id>89fee3e9213d3fc6e100e7e9ef435d9dc6ed7d6d</id>
  <committed-date>2006-07-02T06:55:40-07:00</committed-date>
  <authored-date>2006-07-02T06:55:40-07:00</authored-date>
  <message>enhance readme docs

git-svn-id: http://svn.techno-weenie.net/projects/plugins/exception_logger@1299 567b1171-46fb-0310-a4c9-b4bef9110e78</message>
  <tree>0346f7a5d68945e3266000eedd079611604ceaba</tree>
  <committer>
    <name>technoweenie</name>
    <email>technoweenie@567b1171-46fb-0310-a4c9-b4bef9110e78</email>
  </committer>
</commit>
