CARVIEW |
Select Language
HTTP/2 302
server: nginx
date: Mon, 04 Aug 2025 11:55:27 GMT
content-type: text/plain; charset=utf-8
content-length: 0
x-archive-redirect-reason: found capture at 20100330183053
location: https://web.archive.org/web/20100330183053/https://github.com/ryanb/exception_logger
server-timing: captures_list;dur=0.751134, exclusion.robots;dur=0.023575, exclusion.robots.policy;dur=0.011535, esindex;dur=0.013344, cdx.remote;dur=8.541785, LoadShardBlock;dur=477.692321, PetaboxLoader3.datanode;dur=288.497474, PetaboxLoader3.resolve;dur=83.264623
x-app-server: wwwb-app219
x-ts: 302
x-tr: 537
server-timing: TR;dur=0,Tw;dur=0,Tc;dur=0
set-cookie: wb-p-SERVER=wwwb-app219; path=/
x-location: All
x-rl: 0
x-na: 0
x-page-cache: MISS
server-timing: MISS
x-nid: DigitalOcean
referrer-policy: no-referrer-when-downgrade
permissions-policy: interest-cohort=()
HTTP/2 200
server: nginx
date: Mon, 04 Aug 2025 11:55:28 GMT
content-type: text/html; charset=utf-8
x-archive-orig-server: nginx/0.7.61
x-archive-orig-date: Tue, 30 Mar 2010 18:30:53 GMT
x-archive-orig-connection: close
x-archive-orig-status: 200 OK
x-archive-orig-etag: "3de54d7e60908aabfc5d5794351deefd"
x-archive-orig-x-runtime: 275ms
x-archive-orig-content-length: 26193
x-archive-orig-cache-control: private, max-age=0, must-revalidate
x-archive-guessed-content-type: text/html
x-archive-guessed-charset: utf-8
memento-datetime: Tue, 30 Mar 2010 18:30:53 GMT
link: ; rel="original", ; rel="timemap"; type="application/link-format", ; rel="timegate", ; rel="first memento"; datetime="Sat, 03 Oct 2009 00:27:01 GMT", ; rel="prev memento"; datetime="Thu, 18 Feb 2010 08:06:40 GMT", ; rel="memento"; datetime="Tue, 30 Mar 2010 18:30:53 GMT", ; rel="next memento"; datetime="Mon, 11 Jun 2018 03:23:19 GMT", ; rel="last memento"; datetime="Thu, 17 Sep 2020 09:33:50 GMT"
content-security-policy: default-src 'self' 'unsafe-eval' 'unsafe-inline' data: blob: archive.org web.archive.org web-static.archive.org wayback-api.archive.org athena.archive.org analytics.archive.org pragma.archivelab.org wwwb-events.archive.org
x-archive-src: 51_15_20100330171649_crawl103-c/51_15_20100330183046_crawl101.arc.gz
server-timing: captures_list;dur=0.654187, exclusion.robots;dur=0.022547, exclusion.robots.policy;dur=0.010801, esindex;dur=0.014896, cdx.remote;dur=2.403183, LoadShardBlock;dur=198.013470, PetaboxLoader3.datanode;dur=90.122811, PetaboxLoader3.resolve;dur=187.699923, load_resource;dur=122.729115
x-app-server: wwwb-app219
x-ts: 200
x-tr: 407
server-timing: TR;dur=0,Tw;dur=0,Tc;dur=0
x-location: All
x-rl: 0
x-na: 0
x-page-cache: MISS
server-timing: MISS
x-nid: DigitalOcean
referrer-policy: no-referrer-when-downgrade
permissions-policy: interest-cohort=()
content-encoding: gzip
ryanb's exception_logger at master - GitHub
ryanb / exception_logger forked from defunkt/exception_logger
- Source
- Commits
- Network (34)
- Issues (0)
- Downloads (0)
- Wiki (1)
- Graphs
-
Branch:
master
click here to add a description
click here to add a homepage
Sending Request…
Don't use this fork, instead use the original by defunkt as that has these changes merged in. — Read more
commit c25f64a95fb20c705bf9a0ddfb6a1f22016bafce
tree 40d2b2bab1a97e78fc8fa4c27aa6228c299d50dc
parent 76cd04dc61b7025b97e62b80cdc090596b459cb4
tree 40d2b2bab1a97e78fc8fa4c27aa6228c299d50dc
parent 76cd04dc61b7025b97e62b80cdc090596b459cb4
name | age | message | |
---|---|---|---|
![]() |
README | Sun May 04 22:29:12 -0700 2008 | correcting routing note in README since the con... [ryanb] |
![]() |
Rakefile | Loading commit data... ![]() |
|
![]() |
assets/ | Sun Sep 03 20:57:56 -0700 2006 | add RSS feed support git-svn-id: https://svn.te... [technoweenie] |
![]() |
generators/ | ||
![]() |
init.rb | ||
![]() |
install.rb | Sun Jul 02 06:55:40 -0700 2006 | enhance readme docs git-svn-id: https://svn.tec... [technoweenie] |
![]() |
lib/ | ||
![]() |
tasks/ | Fri Jun 23 21:43:30 -0700 2006 | first public version of logged exceptions plugi... [technoweenie] |
![]() |
test/ | Fri Jun 23 21:43:30 -0700 2006 | first public version of logged exceptions plugi... [technoweenie] |
![]() |
uninstall.rb | Fri Jun 23 21:43:30 -0700 2006 | first public version of logged exceptions plugi... [technoweenie] |
![]() |
views/ | Sun May 04 22:28:15 -0700 2008 | defaulting the page param to '1' if it's not sp... [ryanb] |
README
ExceptionLogger =============== The Exception Logger (forgive the horrible name) logs your Rails exceptions in the database and provides a funky web interface to manage them. First you need to generate the migration: ./script/generate exception_migration 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 Now add a new route to your routes.rb: map.connect "logged_exceptions/:action/:id", :controller => "logged_exceptions" 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 # set the same session key as the app session :session_key => '_beast_session_id' # include any custom auth modules you need include AuthenticationSystem before_filter :login_required # optional, sets the application name for the rss feeds self.application_name = "Beast" protected # only allow admins # this obviously depends on how your auth system works def authorized? current_user.is_a?(Admin) end # assume app's login required doesn't use http basic def login_required_with_basic respond_to do |accepts| # alias_method_chain will alias the app's login_required to login_required_without_basic accepts.html { login_required_without_basic } # access_denied_with_basic_auth is defined in LoggedExceptionsController # get_auth_data returns back the user/password pair accepts.rss do access_denied_with_basic_auth unless self.current_user = User.authenticate(*get_auth_data) end end end alias_method_chain :login_required, :basic 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