laravel的日志服务

日志服务使用:

$app=app();
$log=$app->make('log');
$log->info('post_index',['data'=>'this is post index']);//日志:

  

日志服务使用:

Log::info('post_index',['data'=>'this is post index']);//日志:

  

生成的日志:

storage/logs/laravel.log文件中

原文地址:https://www.cnblogs.com/yiweiyihang/p/8628224.html