use IlluminateSupportFacadesLog;
Log::emergency($message);
Log::alert($message);
Log::critical($message);
Log::error($message);
Log::warning($message);
Log::notice($message);
Log::info($message);
Log::debug($message);
use IlluminateSupportFacadesLog;
Log::debug('Debug Log Tracked');
Log::emergency('Emergency Log Tracked');
Log::alert('Alert Log Tracked');
Log::error('Error Log Tracked');
Log::warning('Warning Log Tracked');
Log::notice('Notice Log Tracked');
Log::info('Info Log Tracked');
Log::critical('Critical Log Tracked');
YourLaravelProjectstoragelogs check date wise required log file
use IlluminateSupportFacadesLog;
Log::build([
'driver' => 'single',
'path' => storage_path('logs/custom.log'),
])->info('Something happened!');
use Log;
Log::emergency($message);
Log::alert($message);
Log::critical($message);
Log::error($message);
Log::warning($message);
Log::notice($message);
Log::info($message);
Log::debug($message);
use MonologLogger;
$orderLog = new Logger('order');
$orderLog->pushHandler(new StreamHandler(storage_path('logs/mylogs.log')), Logger::INFO);
$orderLog->info("Order id: ${orderId}");
use IlluminateSupportFacadesLog;
Log::emergency($message);
Log::alert($message);
Log::critical($message);
Log::error($message);
Log::warning($message);
Log::notice($message);
Log::info($message);
Log::debug($message);
use IlluminateSupportFacadesLog;
Log::channel('slack')->info('Something happened!');
IlluminateSupportFacadesLog::debug();
app/storage/laravel.log
Log :: emergency();
Log :: alert();
Log :: critical();
Log :: error();
Log :: warning();
Log :: notice();
Log :: info();
Log :: debug();
use IlluminateSupportFacadesLog;
Log::error($message);
/* LOG ROUTE -> */
/storage/logs/laravel.log