Download the PHP package slimen/log-tracker without Composer
On this page you can find all versions of the php package slimen/log-tracker. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download slimen/log-tracker
More information about slimen/log-tracker
Files in slimen/log-tracker
Package log-tracker
Short Description Display symfony logs in more elegant way and track exceptions by sending real time mails containing details about the exception.
License MIT
Informations about the package log-tracker
LogTrackerBundle
Sometimes symfony does not display the exception in the browser, so you have to go to the log file and check the lastest log details so you can read the exception and locate the source of the problem.
Pretty annoying isn't ? Well LogtrackerBundle will make your life easier by displaying the details of the log file (dev.log and prod.log) in more elegant way with the possibility of filtering and searching inside the file.
LogTrackerBunlde helps you also to track any thrown exception in your project by sending real time email with the details of the exception.
Installation
composer require slimen/log-tracker- Enable the bundle in AppKernel.php
new SBC\LogTrackerBundle\LogTrackerBundle(), -
Add this in
config/routing.yml: - run
php bin/console asset:install
Usage
- To display
dev.loggot tolocalhost:/YourProject/web/dev_app.php/logger/_dev - To display
prod.loggot tolocalhost:/YourProject/web/dev_app.php/logger/_prod - To keep track of thrown exception you need to add this in your
config.ymlfile:
How it works
In production mode LogTrackerBundle will catch any type of exception (except NotFoundException assuming that it will be handled to display 404 Not Found page)
and will display this view (Of course unless you override it):
Override the default view
You can override the whole view and display any
view you want by following Symfony's override style
To override the view just add a view called error_catcher.html.twig under the folder
app/Resources/LogTracker/views/ and create the view you want to display for your users.
License
This project is under the MIT license