我们在Spring Boot中有微服务架构应用程序。我们计划将审核日志添加到我们的服务中。这样我们就可以获得类似的信息,
高级:
JSON(日志结构):
{
"userId" : "100",
"ip" : "192.168.1.1",
"deviceId" : "f07a13984f6d116a",
"country" : "India",
"language" : "English (U.S)"
"userAgent" : "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.103 Safari/537.36",
"timestamp" : "2004-02-12T15:19:21.000+00:00",
"event" : "update product",
"resource" : "user",
"action" : "deactivate",
"objectId" : "22",
"objectType" : "user",
"description" : "Deactivated user",
"service" : "User service",
"appVersion" : "v1",
"requestId" : "db176f6b-b4c6-4a59-ac62-4d471eedf354"
"server" : "i0e5b5c88",
"serverLocation": "us-east-1",
"protocol" : "https",
"method" : "PATCH",
"statusCode" : "200"
}
谁能建议更好的架构来使用Spring Boot实现自定义审核日志?
以便我可以从中提取有用的信息。