sfErrorNotifierPlugin
1.0.4stable
for sf 1.2sf 1.1sf 1.0 MIT
The sfErrorNotifierPlugin sends automatically email notifications when application errors (exceptions) occur and are not caught.
Optionally, it will send notifications also for PHP Fatal Errors and/or PHP Warnings.
Its easy configuration allows you to set which environments to enable for the notifications.
The details about the thrown exceptions and other useful parameters are sent via email.
NEW! It is also possible to trigger notifications explicitly from anywhere in your code (the email will be sent only from the environments enabled for the notifications)
NEW! You can specify a mailer function (or method) to use rather than the native PHP mail method
NEW! It work on Symfony 1.2, 1.3 and 1.4
Brought to you by Plancake (http://www.plancake.com): your online task manager is now free and Opensource (and built on Symfony)
For any problem or question, ask the official forum hosted by the Plancake project:
http://www.plancake.com/forums/forum/10/sferrornotifierplugin/
Developers
License
Copyright (c) 2008-2009 Daniele Occhipinti (http://www.danieleocchipinti.com)
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Releases for sf 1.4
| Version |
License |
API |
Released |
|
1.6.0stable
|
MIT license |
1.6.0stable
|
13/10/2010 |
|
1.5.4stable
|
MIT license |
1.5.4stable
|
19/09/2010 |
|
1.5.3stable
|
MIT license |
1.5.3stable
|
16/09/2010 |
|
1.5.2stable
|
MIT license |
1.5.2stable
|
13/08/2010 |
|
1.5.1stable
|
MIT license |
1.5.1stable
|
06/08/2010 |
Releases for sf 1.3
| Version |
License |
API |
Released |
|
1.6.0stable
|
MIT license |
1.6.0stable
|
13/10/2010 |
|
1.5.4stable
|
MIT license |
1.5.4stable
|
19/09/2010 |
|
1.5.3stable
|
MIT license |
1.5.3stable
|
16/09/2010 |
|
1.5.2stable
|
MIT license |
1.5.2stable
|
13/08/2010 |
|
1.5.1stable
|
MIT license |
1.5.1stable
|
06/08/2010 |
|
1.1.6stable
|
MIT license |
1.1.6stable
|
09/02/2010 |
|
1.1.2stable
|
MIT license |
1.1.2stable
|
29/10/2009 |
|
1.1.1stable
|
MIT license |
1.1.1stable
|
29/10/2009 |
Releases for sf 1.2
| Version |
License |
API |
Released |
|
1.6.0stable
|
MIT license |
1.6.0stable
|
13/10/2010 |
|
1.5.4stable
|
MIT license |
1.5.4stable
|
19/09/2010 |
|
1.5.3stable
|
MIT license |
1.5.3stable
|
16/09/2010 |
|
1.5.2stable
|
MIT license |
1.5.2stable
|
13/08/2010 |
|
1.5.1stable
|
MIT license |
1.5.1stable
|
06/08/2010 |
|
1.5.0stable
|
MIT license |
1.5.0stable
|
05/08/2010 |
|
1.2.0stable
|
MIT license |
1.2.0stable
|
23/03/2010 |
|
1.1.6stable
|
MIT license |
1.1.6stable
|
09/02/2010 |
|
1.1.5stable
|
MIT license |
1.1.5stable
|
25/01/2010 |
|
1.1.2stable
|
MIT license |
1.1.2stable
|
29/10/2009 |
|
1.1.1stable
|
MIT license |
1.1.1stable
|
29/10/2009 |
|
1.0.5stable
|
MIT license |
1.0.5stable
|
25/01/2010 |
|
1.0.4stable
|
MIT license |
1.0.4stable
|
08/12/2009 |
|
1.0.3stable
|
MIT license |
1.0.3stable
|
29/04/2009 |
|
1.0.1stable
|
MIT license |
1.0.1stable
|
26/04/2009 |
|
1.0.0stable
|
MIT license |
1.0.0stable
|
26/04/2009 |
Releases for sf 1.1
| Version |
License |
API |
Released |
|
1.5.0stable
|
MIT license |
1.5.0stable
|
05/08/2010 |
|
1.2.0stable
|
MIT license |
1.2.0stable
|
23/03/2010 |
|
1.1.6stable
|
MIT license |
1.1.6stable
|
09/02/2010 |
|
1.1.5stable
|
MIT license |
1.1.5stable
|
25/01/2010 |
|
1.1.2stable
|
MIT license |
1.1.2stable
|
29/10/2009 |
|
1.1.1stable
|
MIT license |
1.1.1stable
|
29/10/2009 |
|
1.0.5stable
|
MIT license |
1.0.5stable
|
25/01/2010 |
|
1.0.4stable
|
MIT license |
1.0.4stable
|
08/12/2009 |
|
1.0.3stable
|
MIT license |
1.0.3stable
|
29/04/2009 |
|
1.0.1stable
|
MIT license |
1.0.1stable
|
26/04/2009 |
|
1.0.0stable
|
MIT license |
1.0.0stable
|
26/04/2009 |
Releases for sf 1.0
| Version |
License |
API |
Released |
|
1.5.0stable
|
MIT license |
1.5.0stable
|
05/08/2010 |
|
1.2.0stable
|
MIT license |
1.2.0stable
|
23/03/2010 |
|
1.1.6stable
|
MIT license |
1.1.6stable
|
09/02/2010 |
|
1.1.5stable
|
MIT license |
1.1.5stable
|
25/01/2010 |
|
1.0.5stable
|
MIT license |
1.0.5stable
|
25/01/2010 |
|
1.0.4stable
|
MIT license |
1.0.4stable
|
08/12/2009 |
|
1.0.3stable
|
MIT license |
1.0.3stable
|
29/04/2009 |
|
1.0.1stable
|
MIT license |
1.0.1stable
|
26/04/2009 |
|
1.0.0stable
|
MIT license |
1.0.0stable
|
26/04/2009 |
Changelog for release 1.0.4 - 08/12/2009
Other releases
Release 1.6.0 - 13/10/2010
Release 1.5.4 - 19/09/2010
Release 1.5.3 - 16/09/2010
Release 1.5.2 - 13/08/2010
Release 1.5.1 - 06/08/2010
Release 1.5.0 - 05/08/2010
Release 1.2.0 - 23/03/2010
Release 1.1.6 - 09/02/2010
Release 1.1.5 - 25/01/2010
Release 1.1.2 - 29/10/2009
Release 1.1.1 - 29/10/2009
Release 1.0.5 - 25/01/2010
Release 1.0.4 - 08/12/2009
Release 1.0.3 - 29/04/2009
Release 1.0.1 - 26/04/2009
Release 1.0.0 - 26/04/2009
sfErrorNotifierPlugin plugin
The sfErrorNotifierPlugin sends automatically email notifications when application errors (exceptions) occur.
Its easy configuration allows you to set which environments to enable for the notifications.
The details about the thrown exceptions and other useful parameteers are sent via email.
NEW! It is also possible to trigger notifications explicitly by using this line anywhere in your code (the email will be sent only from the environments enabled for the notifications):
sfErrorNotifier::alert('Message To Send With The Alert')
Installation
Install the plugin
symfony plugin:install sfErrorNotifierPlugin
In the file /plugins/sfErrorNotifierPlugin/config/app.yml, set the email address(es) to deliver the notifications to, for the environments you want to enable (tipically only 'prod').
You can comma-separate multiple recipients.
prod:
sfErrorNotifier:
email: errors@mysite.com
In this configuration file, you can also set the format of the email (html or txt) and, optionally, the From: field for the email.
Clear the cache
symfony cc
Some users have mentioned they needed to override the default error page in order to get this plugin to work. You shouldn't need that, but just in case the plugin doesn't work, try to do it. The way to set a custom error page is explained in the Symfony books.
You're done.
Changelog
2009-10-28 | 1.1
- Added nice HTML format for the email (thanks to Gustavo Garcia)
- Added user information to the email (thanks to Gustavo Garcia)
- Added the possibility to also trigger the notification email
explicitly via a standard method call
2009-04-30 | 1.0.2
- Improved the documentation
- Made the email subject more explanatory
2009-04-27 | 1.0.1
- Improved the documentation
2009-04-26 | 1.0.0
- converted the plugin to 1.1