`
xxj
  • 浏览: 426197 次
  • 性别: Icon_minigender_1
  • 来自: 上海
社区版块
存档分类
最新评论

Exception Notifier - Ruby on Rails plugin

阅读更多
http://sas.sparklingstudios.com/articles/2006/08/31/exception-notifier-ruby-on-rails-plugin

以下是原文:
引用

Yesterday I came over Exception Notifier.

I found it really useful because it is really easy to install and you can instantly react to Application Errors. Your customers don’t have to notify you because you get a bunch of information to track the error via email.

3 easy steps are necessary to set up Exception Notifier:
1. Install the exception_notification plugin:
ruby script/plugin install exception_notification

2. Configure exception_notification: Add following line to your config/environment.rb file:
ExceptionNotifier.exception_recipients = %w(your@emailaddress.com)

3. Tell the Exception Notifier for which controller it shoud send exception notifications to you. In this example it will send notifications for all exceptions:
class ApplicationController < ActionController::Base
    include ExceptionNotifiable 
end

Thats it! Now you will be notified when an error rises.

NOTE: If your server can’t send mails, you have to configure your Rails app for sending mails! Seehttp://wiki.rubyonrails.org/rails/pages/HowToSendEmailsWithActionMailerin section “Configuration”.
For advanced configuration read http://dev.rubyonrails.org/browser/plugins/exception_notification/README
分享到:
评论

相关推荐

    PyPI 官网下载 | backwork-notifier-sentry-0.2.0.tar.gz

    标题中的"PyPI 官网下载 | backwork-notifier-sentry-0.2.0.tar.gz"表明这是一个从Python Package Index(PyPI)官方下载的软件包,名为`backwork-notifier-sentry-0.2.0`,并且其压缩格式为tar.gz。PyPI是Python...

    rails2.3.2 ExceptionNotifier 配置

    标题 "rails2.3.2 ExceptionNotifier 配置" 指的是在Rails 2.3.2版本中,如何设置和使用ExceptionNotifier插件。ExceptionNotifier是Rails的一个非常有用的gem,它允许开发者在应用程序中捕获并通知异常情况,如错误...

    Python库 | event-notifier-0.1.3.tar.gz

    《Python库event-notifier-0.1.3详解》 在Python编程中,库是开发者的重要工具,它们提供了丰富的功能,使我们能够高效地构建应用程序。"event-notifier-0.1.3"是一个这样的库,它专注于事件通知,帮助开发者实现对...

    Ruby-Slackathon在Rails应用程序中构建slack集成的简单方法

    在Rails项目中,首先你需要添加`slack-ruby-client`和`slack-notifier`这两个gem到Gemfile中,它们是Ruby-Slackathon的依赖。执行`bundle install`来安装这些库。 3. **配置Slack API令牌**: 在Slack的工作区中...

    PyPI 官网下载 | down_notifier-0.1.1-py3-none-any.whl

    《PyPI官网下载:探索down_notifier-0.1.1-py3-none-any.whl》 在Python的世界里,PyPI(Python Package Index)是官方的软件仓库,它为开发者提供了一个集中发布和获取Python软件包的平台。本文将详细讨论标题提到...

    Email-Notifier-Discord-Bot:一个简单的Discord机器人,当您收到电子邮件时通知您

    # Clone the repositorygit clone https://github.com/bootsie123/Email-Notifier-Discord-Bot.git# Enter the directorycd Email-Notifier-Discord-Bot# Install the dependenciesnpm install配置要设置机器人,请...

    of-reconfig-notifier-error-inject.rar_dino

    标题中的"of-reconfig-notifier-error-inject.rar_dino"提到了两个关键概念:`of-reconfig-notifier-error-inject`和`dino`。这表明我们正在处理一个与Linux内核驱动程序相关的主题,特别是关于设备配置通知和错误...

    Python库 | pre_notifier-0.1.13-py3-none-any.whl

    python库。 资源全名:pre_notifier-0.1.13-py3-none-any.whl

    PyPI 官网下载 | i3-notifier-0.13.tar.gz

    《PyPI官网下载 | i3-notifier-0.13.tar.gz:探索Python通知库i3-notifier》 PyPI(Python Package Index)是Python开发者的重要资源库,它提供了无数的开源库和模块,便于开发者们快速构建和扩展项目。在PyPI中,...

    slack-notifier-main-源码.rar

    当我们解压“slack-notifier-main-源码.rar”后,会得到一个名为“slack-notifier-main-源码.zip”的文件,这正是我们探索 Slack Notifier 内部工作原理的入口。本文将深入探讨其主要源码,理解其核心功能和实现机制...

    Node.js-update-notifier-CLI应用程序更新通知

    在这个标题为 "Node.js-update-notifier-CLI应用程序更新通知" 的主题中,我们主要讨论的是 `update-notifier` 这个模块,它是一个用于命令行接口(CLI)应用程序的更新检查工具。 `update-notifier` 是 Node.js ...

    PyPI 官网下载 | desktop_notifier-3.2.0-py2.py3-none-any.whl

    标题中的"PyPI 官网下载 | desktop_notifier-3.2.0-py2.py3-none-any.whl"指的是在Python的包索引服务(Python Package Index,简称PyPI)上发布的`desktop_notifier`库的一个特定版本,即3.2.0版。PyPI是Python...

    Python库 | publish-notifier-1.0.3.tar.gz

    资源分类:Python库 所属语言:Python 资源全名:publish-notifier-1.0.3.tar.gz 资源来源:官方 安装方法:https://lanzao.blog.csdn.net/article/details/101784059

    PyPI 官网下载 | manga_notifier-0.6.3-py3-none-any.whl

    资源来自pypi官网。 资源全名:manga_notifier-0.6.3-py3-none-any.whl

    backwork-notifier-http:HTTP通知的Backwork插件

    backwork-notifier-http 支持上的HTTP通知。 正在安装 您可以使用pip直接安装此插件: $ pip install backwork-notifier-http 使用 安装插件后,您将可以在backwork命令上使用-n http参数。 $ backwork --help ...

    of-reconfig-notifier-error-inject.rar_K.

    标题 "of-reconfig-notifier-error-inject.rar_K." 暗示了这是一个关于Linux设备驱动程序,特别是与DRX-K(可能是指动态无线电休眠模式)配置和错误注入相关的项目。描述提到的 "struct drxk_config" 是一个用于设置...

    Python库 | desktop_notifier-2.0.3-py2.py3-none-any.whl

    python库。 资源全名:desktop_notifier-2.0.3-py2.py3-none-any.whl

    hipchat-notifier-plugin:Jenkins 的 HipChatNotifier 插件

    HipChatNotifier 插件 使用 HipChat API v2。 它与其他 HipChat Jenkins 插件有何不同? 它有效,因为它使用最新的 HipChat APIv2 :) 可以指定房间所有者创建的令牌(不再需要 ...cd hipchat-notifier-plugin m

Global site tag (gtag.js) - Google Analytics