Documentation for macOS
#Inspect local log files
If you don't want to run a terminal command like tail
or tail the logs with Laravel Pail, you can use Herd's integrated log viewer. It allows you to inspect your log files in great detail and makes searching through logs a breeze.
If you are only interested in the logs of the latest request, you man use the log view of the Dumps feature to get the most recent logs automatically.
[!NOTE] This feature requires PHP 8.0 or later
Herd automatically polls for new logs every few seconds as long as the Logs window is open.
#Selecting a Project and Log File
By default, the log window shows the latest log file of the last project that you visited in your browser. This allows you to quickly find the latest log file, but you can also switch between all projects that Herd knows and serves.
If your project includes more than one log file, for example when using daily log rotation, you can select the log file on the left.
#Searching in Log Files
The search bar at the top searches through all logs and allows you to pinpoint all log entries that match your search query. You can hit Cmd+F in the text area that shows the details of the entry and search within this single entry.
#Custom log paths
Herd looks for logs in the framework-specific standard directory, such as storage/logs
for Laravel. You can change that directory and even add multiple log directories by using a custom driver for that application.