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

[ DRAFT ] Log JSON body #78

Closed
wants to merge 1 commit into from
Closed

Conversation

DavidLarsKetch
Copy link
Collaborator

@DavidLarsKetch DavidLarsKetch commented May 16, 2024

Example outputs (pretty printed for easier reading)

{
  "time": "2024-05-16T08:33:36.729765-05:00",
  "kind": "http",
  "duration": 483,
  "host": "localhost:3000",
  "id": "834c4b61-dcb9-4a7c-90fc-bc3ce9dcb112",
  "remoteAddr": "0.0.0.0",
  "method": "PATCH",
  "path": "/api/v1/users",
  "protocol": "HTTP/1.1",
  "referrer": "",
  "contentLength": 475,
  "contentType": "application/json",
  "bodySize": 3245,
  "scheme": "",
  "sessionId": "ff57af3d-5583-4f60-ac2d-897d12ced24a",
  "status": 200,
  "uri": "/api/v1/users",
  "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:125.0) Gecko/20100101 Firefox/125.0",
  "body": {
    "firstName": "Jerry",
    "email": "[email protected]",
    "gender": "male",
    "pronouns": "",
    "shirtSize": "xl",
    "id": 2,
    "middleInitial": "",
    "lastName": "Garcia",
    "preferredName": "Jerry",
    "addresses": {
      "shippingCity": "Bozeman",
      "shippingState": "MT",
      "shippingPostalCode": "12345",
      "businessAddrLn1": "23 E Main St",
      "businessCity": "Bozeman",
      "businessState": "MT",
      "businessPostalCode": "12345",
      "shippingAddrLn1": "23 E Main St",
      "shippingAddrLn2": "",
      "businessAddrLn2": ""
    },
    "phone": "1111111111"
  }
}
time=2024-05-16T08:32:17.346-05:00
kind=http
duration=466
host=localhost:3000
id=8adba915-6694-4787-8cec-04cec01bd30e
remoteAddr=0.0.0.0
method=PATCH
path=/api/v1/users
protocol=HTTP/1.1
referrer=""
contentLength=475
contentType=application/json
bodySize=3245
scheme=""
sessionId=ff57af3d-5583-4f60-ac2d-897d12ced24a
status=200
uri=/api/v1/users
userAgent="Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:125.0) Gecko/20100101 Firefox/125.0"
body.lastName=Garcia
body.preferredName=Jerry
[email protected]
body.addresses.businessState=MT
body.addresses.shippingAddrLn1="23 E Main St"
body.addresses.businessAddrLn1="23 E Main St"
body.addresses.businessAddrLn2=""
body.addresses.shippingAddrLn2=""
body.addresses.shippingCity=Bozeman
body.addresses.shippingState=MT
body.addresses.shippingPostalCode=12345
body.addresses.businessCity=Bozeman
body.addresses.businessPostalCode=12345
body.phone=1111111111
body.id=2
body.firstName=Jerry
body.middleInitial=""
body.shirtSize=xl
body.gender=male
body.pronouns=""

@DavidLarsKetch DavidLarsKetch deleted the dlk/log-request-body branch October 23, 2024 14:57
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

Successfully merging this pull request may close these issues.

1 participant