Copyright (c) 2004-2006 Fabien Potencier
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.
sfErrorLoggerPlugin plugin
The sfErrorLoggerPlugin logs all your 404 and 500 errors to the database.
It also provides a module sfErrorLogViewer to navigate through the errors.
Installation
Install the plugin
symfony plugin-install http://plugins.symfony-project.com/sfErrorLoggerPlugin
Rebuild your model
symfony propel-build-all
Enable the viewer module in your settings.yml (optional)
all:
.settings:
activated_modules: [sfErrorLogViewer](...,)
Clear the cache
symfony cc
You're done.
Troubleshooting
If you use the symfony sync task, be sure to check the following line in config/rsync_exclude.txt and change:
log
by
/log/*
Changelog
2007-09-10 | 1.0.6
- fabien: fixed 'delete all similar' feature
- fabien: changed exception_object and request to clob
- fabien: added a try/catch block around logger to avoid exception if the database is not properly configured