Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Log format problem #1419

Open
qvbilam opened this issue Dec 24, 2024 · 0 comments
Open

Log format problem #1419

qvbilam opened this issue Dec 24, 2024 · 0 comments

Comments

@qvbilam
Copy link

qvbilam commented Dec 24, 2024

Can't see the request and response values

use Monolog\Logger

$logger = new Logger("elasticsearch");
$logger->pushHandler(new StreamHandler($loggerPath, Logger::INFO));
$builder = ClientBuilder::create();
$builder->setLogger($logger);

My log

[2024-12-24T10:27:45.950113+08:00] elasticsearch.INFO: Request: POST http://elastic:root@localhost:9200/user/_search {"request":{"GuzzleHttp\\Psr7\\ServerRequest":[]}} []
[2024-12-24T10:27:46.079578+08:00] elasticsearch.INFO: Response (retry 0): 200 {"response":{"GuzzleHttp\\Psr7\\Response":[]},"retry":0} []
[2024-12-24T10:27:46.079645+08:00] elasticsearch.INFO: Response time in 0.130 sec [] []
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant