All Type of Logs in Laravel
use Illuminate\Support\Facades\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);
Passing Parameters to Logs
To pass parameters when logging data you can pass an array as the 2nd parameter. You can pass any number of key-value pairs as necessary.
Log::alert('Some alert message mere', ['hello' => 'world']); Log::info('Some info message mere', ['hello' => 'world']);
Leave a reply