CARVIEW |
Select Language
HTTP/2 302
server: nginx
date: Thu, 31 Jul 2025 10:48:39 GMT
content-type: text/plain; charset=utf-8
content-length: 0
x-archive-redirect-reason: found capture at 20080517061754
location: https://web.archive.org/web/20080517061754/https://github.com/defunkt/exception_logger/tree
server-timing: captures_list;dur=0.562111, exclusion.robots;dur=0.016738, exclusion.robots.policy;dur=0.007363, esindex;dur=0.009966, cdx.remote;dur=40.562900, LoadShardBlock;dur=728.442430, PetaboxLoader3.datanode;dur=501.544322, PetaboxLoader3.resolve;dur=209.786269
x-app-server: wwwb-app239
x-ts: 302
x-tr: 1089
server-timing: TR;dur=0,Tw;dur=0,Tc;dur=4
set-cookie: SERVER=wwwb-app239; 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: Thu, 31 Jul 2025 10:48:39 GMT
content-type: text/html; charset=utf-8
x-archive-orig-server: nginx/0.6.26
x-archive-orig-date: Sat, 17 May 2008 13:17:54 GMT
x-archive-orig-transfer-encoding: chunked
x-archive-orig-connection: close
x-archive-orig-set-cookie: _github_session=BAh7BiIKZmxhc2hJQzonQWN0aW9uQ29udHJvbGxlcjo6Rmxhc2g6OkZsYXNo%250ASGFzaHsABjoKQHVzZWR7AA%253D%253D--05fe545aeb8e6719fb006b3a7474a1d3aeb228a4; path=/
x-archive-orig-status: 200 OK
x-archive-orig-x-runtime: 0.56936
x-archive-orig-etag: "d624727cdac59f2b84928833c4881dd0"
x-archive-orig-cache-control: private, max-age=0, must-revalidate
x-archive-orig-x_commoncrawl_parsesegmentid: 3630
x-archive-orig-x_commoncrawl_originalurl: https://github.com/defunkt/exception_logger/tree
x-archive-orig-x_commoncrawl_urlfp: 233531843781660405
x-archive-orig-x_commoncrawl_hostfp: 2322381874540480054
x-archive-orig-x_commoncrawl_signature:
x-archive-orig-x_commoncrawl_crawlno: 1
x-archive-orig-x_commoncrawl_fetchtimestamp: 1211030274451
x-archive-guessed-content-type: text/html
x-archive-guessed-charset: utf-8
x-archive-orig-content-encoding: gzip
memento-datetime: Sat, 17 May 2008 06:17:54 GMT
link: ; rel="original", ; rel="timemap"; type="application/link-format", ; rel="timegate", ; rel="first memento"; datetime="Tue, 05 Feb 2008 16:21:11 GMT", ; rel="prev memento"; datetime="Sun, 06 Apr 2008 06:18:04 GMT", ; rel="memento"; datetime="Sat, 17 May 2008 06:17:54 GMT", ; rel="next memento"; datetime="Sat, 07 Jun 2008 16:44:18 GMT", ; rel="last memento"; datetime="Fri, 25 Sep 2009 00:41:30 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: 1214585133801_12-c/1214585800910_4.arc.gz
server-timing: captures_list;dur=0.483225, exclusion.robots;dur=0.015842, exclusion.robots.policy;dur=0.006915, esindex;dur=0.007800, cdx.remote;dur=20.967302, LoadShardBlock;dur=105.900151, PetaboxLoader3.datanode;dur=136.527889, load_resource;dur=103.222399, PetaboxLoader3.resolve;dur=51.244785
x-app-server: wwwb-app239
x-ts: 200
x-tr: 306
server-timing: TR;dur=0,Tw;dur=0,Tc;dur=3
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
defunkt's exception_logger at master — GitHub
Clone URL: |
git://github.com/defunkt/exception_logger.git
Give this clone URL to anyone.
git clone git://github.com/defunkt/exception_logger.git
|
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
This feature is coming soon. Sit tight!