App-Cherish / cherish-backend

0 stars 1 forks source link

[DEV][BE]로그를 출력하는 기능을 개발한다. #14

Closed ansdudgh98 closed 11 months ago

ansdudgh98 commented 12 months ago
ansdudgh98 commented 11 months ago

HTTP REQUEST

Method: /api/account/signup URI: POST Content-Type: application/json Body: { "oauthId":"testidkakao", "gender" : "male", "name" : "testname", "birth" : "2018-12-15", "platform" : "kakao", "deviceId" : "hello", "deviceType" : "iphone15" }

2023-11-14T22:14:15.828+09:00 INFO 43009 --- [p-nio-80-exec-1] c.c.backend.infra.logging.LoggingFilter :

HTTP RESPONSE

StatusCode: 200 Body: {"tokenId":"c6618102-0ac0-4443-9ebd-d3de2e75df09","expiredTime":"2023-12-15 22:14:15 +8150"} 2023-11-14T22:14:15.828+09:00 INFO 43009 --- [p-nio-80-exec-1] c.c.backend.infra.logging.LoggingFilter :

Request Processed

POST /api/account/signup [Time: 132 ms] [Queries: 5]

와 같은 JSON형식으로 출력하도록 하였고 이를 AWS CLOUDWATCH에 연동하였음

ansdudgh98 commented 11 months ago

Secret key git에서 주입받고 이를 받아올수있도록 작업하기