laravel error log location code example
Example 1: laravel log path
storage/logs/laravel.log
Example 2: laravel logger
use Monolog\Logger;
$orderLog = new Logger('order');
$orderLog->pushHandler(new StreamHandler(storage_path('logs/mylogs.log')), Logger::INFO);
$orderLog->info("Order id: ${orderId}");