EasyLog logs WebApplicationException
different way.
So if a service call throws the WebApplicationException
exception then we will be also able to log error messages.
For example
08:34:40.439 [main] INFO UneasyLogger -
AUTH SERVICE CLIENT
-> public LoginResponse AuthServiceClient.login(LoginRequest request)
request: {
"password": "passasdfasdf",
"loginID": "bademail@webmail.rei.com"
}
08:34:40.682 [main] ERROR io.lenar.easy.log.ExceptionLogger - javax.ws.rs.ForbiddenException: HTTP 403 Forbidden
AUTH SERVICE CLIENT <- AuthServiceClient.login(..):
{"errorMessage":"Invalid LoginID","errorDetail":"invalid loginID or password","errorCode":403}