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::info($message);
Log::info('Message=> ', $message);
// The output can be found in storage/logs/"date".log
IlluminateSupportFacadesLog::debug("");
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!');
Log::info('User failed to login.', ['id' => $user->id]);
Log :: emergency();
Log :: alert();
Log :: critical();
Log :: error();
Log :: warning();
Log :: notice();
Log :: info();
Log :: debug();