The log viewer requires at least PHP 8.
Tinkerwell can display your application logs. This is especially useful when working with remote applications, as you don't have to SSH into the server to view the log files manually. With auto-refresh enabled, you can even use Tinkerwell as a live log viewer.
To open the log viewer for the currently active tab/project, click on the "Log" icon in the Tinkerwell toolbar. This will open the log viewer in a modal window.
Once the log viewer is open, you may choose which log file you want to inspect from the dropdown menu in the top left corner of the log viewer. You can also filter the log entries by log level (e.g. only show "error" entries) or by a search term.
When working with remote applications, you may enable the "Polling" option in the top right corner of the log viewer. This will automatically refresh the log viewer in the selected interval.
By default, Tinkerwell looks for logs in the framework-specific standard directory, such as storage/logs
for Laravel, var/logs
for Shopware, and so on.
If your application stores logs in another directory than that, you can specify a custom log path by using a custom driver for that project.
You can find an example for a custom driver in the beyondcode/tinkerwell repository.