[NO-ISSUE] Add column
This commit is contained in:
@@ -37,6 +37,7 @@ public class LoggingInterceptor implements HandlerInterceptor {
|
||||
.body(getBodyIfAvailable(request))
|
||||
.requestedAt(Instant.now())
|
||||
.traceId(MDC.get("traceId"))
|
||||
.applicationName("myoa-engineering-logging-sample")
|
||||
.build();
|
||||
loggingRequest(requestLog);
|
||||
logPersistenceService.save(requestLog);
|
||||
@@ -82,6 +83,7 @@ public class LoggingInterceptor implements HandlerInterceptor {
|
||||
.body(getBodyIfAvailable(response))
|
||||
.respondedAt(Instant.now())
|
||||
.traceId(MDC.get("traceId"))
|
||||
.applicationName("myoa-engineering-logging-sample")
|
||||
.build();
|
||||
loggingResponse(responseLog);
|
||||
logPersistenceService.save(responseLog);
|
||||
|
||||
@@ -18,6 +18,7 @@ public class RequestLog extends Auditable {
|
||||
@Id
|
||||
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
||||
private Long id;
|
||||
private String applicationName;
|
||||
private String httpMethod;
|
||||
private String uri;
|
||||
private String queryString;
|
||||
|
||||
@@ -18,6 +18,7 @@ public class ResponseLog extends Auditable {
|
||||
@Id
|
||||
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
||||
private Long id;
|
||||
private String applicationName;
|
||||
private Integer httpStatus;
|
||||
private String contentType;
|
||||
private String body;
|
||||
|
||||
Reference in New Issue
Block a user