We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When I use curl to make request to hapi I am getting this information:
curl
curl -X DELETE -H "Authorization: Bearer $TOKEN" "http://localhost:9000/api/foo?blub=hufnefal" {"statusCode":400,"error":"Bad Request","message":"failed to delete"}%
The information I am after in the logs are
But I am somehow not getting that information with
{ plugin: Laabr, options: { colored: true, formats: { response: ':time :method :url :status :payload (:responseTime ms)' } } }
and
"dependencies": { ... "@hapi/hapi": "21.3.2", "joi": "17.11.0", "laabr": "6.1.3", ... },
I tried specifying message and I also tried specifying logQueryParams as suggested in #104 I would have thought this should do the trick:
message
logQueryParams
{ plugin: Laabr, options: { colored: true, hapiPino: { logQueryParams: true }, formats: { response: ':time :method :url :status :payload (:responseTime ms) :message' } } }
What am I missing?
The text was updated successfully, but these errors were encountered:
Also tried:
response: ':time :method :url :status :payload (:responseTime ms) :error[field=message]
Sorry, something went wrong.
Just a pointer would be great.
Is the project abandoned, @felixheck ?
No branches or pull requests
When I use
curl
to make request to hapi I am getting this information:The information I am after in the logs are
But I am somehow not getting that information with
and
I tried specifying
message
and I also tried specifyinglogQueryParams
as suggested in #104I would have thought this should do the trick:
What am I missing?
The text was updated successfully, but these errors were encountered: