Does the follow-up audit module consider supporting auditing for a single piece of data? For example, the order details support viewing the audit log and audit data for this data.
8 Answer(s)
-
0
You can implement an order auditing function yourself for your needs. The current audit is global (global interception)
-
0
If my realize it myself, it is very winding. For example, I want to see all the audit logs (operation records, etc.) of this data, but these audit logs are saved in the global audit log and are not identified.
-
0
@goldstar25 do you mean saving the audit log or filtering it on the UI ? If it is filtering on the UI, you can filter by service name & method name.
-
0
I mean, can you add an identifier field to the audit log? When an audit log is based on a single data operation (such as create, modify, delete, etc.), the ID is taken by default. In this case, for some specific scenarios, it is very simple to track which data is modified under certain circumstances.
-
0
I recommend to write your custom log if you have specific scenarios. For example, if you have an order management page, and you want to track every operation just create a new entity called OrderLog and do your custom logging like;
Order is created | by GoldStar25 | 2018-01-01 20:12 | IP: 123.321.233.222 Order status changed to "Ready" | by Admin | 2018-01-01 22:30 | IP: 123.321.233.222
So you can filter your data and show it in a very user friendly way. No need to push the general logging service to the limits.
-
0
Understand what you mean, but I want to design as generic as possible, because the method name I can find a way to translate, which can greatly reduce the repetitive design and development. Anyway, thank you!
-
0
The above is just a suggestion, if you feel that it is reasonable to adopt.
-
0
@goldstar25, if you are talking about AuditLogs, it already has MethodName and ServiceName fields.