Base solution for your next web application
Ends in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

Single data audit? #5586


User avatar
0
goldstar25 created

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)
  • User Avatar
    0
    maliming created
    Support Team

    You can implement an order auditing function yourself for your needs. The current audit is global (global interception)

  • User Avatar
    0
    goldstar25 created

    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.

  • User Avatar
    0
    ismcagdas created
    Support Team

    @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.

  • User Avatar
    0
    goldstar25 created

    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.

  • User Avatar
    0
    alper created
    Support Team

    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.

  • User Avatar
    0
    goldstar25 created

    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!

  • User Avatar
    0
    goldstar25 created

    The above is just a suggestion, if you feel that it is reasonable to adopt.

  • User Avatar
    0
    ismcagdas created
    Support Team

    @goldstar25, if you are talking about AuditLogs, it already has MethodName and ServiceName fields.