monolog WebProcessor 在webman中无法获取ip等参数 protected $extraFields = [ 'url' => 'REQUEST_URI', 'ip' => 'REMOTE_ADDR', 'http_method' => 'REQUEST_METHOD', 'server' => 'SERVER_NAME', '...
我看了下MongoDBHandler 和 Log.php的代码 配置如下 但是有点问题,请问下是哪里配置错了么 return [ 'default' => [ 'handlers' => [ [ 'class' => Monolog\Handler\MongoDBHandler::class, ...
<?php namespace app\controller; use support\Request; use support\Db; class User { public function db(Request $request) { Db::connection('mongodb')->collection('test')->insert([1,2,3]); return json(Db::...