monolog WebProcessor 在webman中无法获取ip等参数,日志中该如何获取请求参数等内容呢

monolog WebProcessor 在webman中无法获取ip等参数 protected $extraFields = [ 'url' => 'REQUEST_URI', 'ip' => 'REMOTE_ADDR', 'http_method' => 'REQUEST_METHOD', 'server' => 'SERVER_NAME', '...

听泪无言 发表与 2022-03-03 1220 浏览 2 回答
请问Monolog记录到mongodb该如何配置

我看了下MongoDBHandler 和 Log.php的代码 配置如下 但是有点问题,请问下是哪里配置错了么 return [ 'default' => [ 'handlers' => [ [ 'class' => Monolog\Handler\MongoDBHandler::class, ...

听泪无言 发表与 2022-02-18 751 浏览 1 回答
webman mongo数据如何只获取一条记录

<?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::...

听泪无言 发表与 2021-07-16 1397 浏览 1 回答

听泪无言

142
积分
0
获赞数
0
粉丝数
2021-07-16 加入
🔝