Answers for "log set in laravel"

PHP
1

how to log object laravel logger

use Illuminate\Support\Facades\Log;

Log::info(json_encode($user);
Posted by: Guest on June-12-2020
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}");
Posted by: Guest on December-25-2020

Browse Popular Code Answers by Language