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

How to get JSON result of an API service to Audit logs ? #8840


User avatar
0
omkarchoudhari created

We have Audit logs which will log the events triggered on App services(Add,Edit,Delete and so on) . Right now we are getting Time,UserName,Service,Action,Ip Address and Browser details from the servoce

One of our client requirement is that , he wants JSON result of an API service to get logged into this Audit Logs. However, we are unable to find a way to extend the current logging feature to accomodate JSON output.

Can you please guide us how we can achieve this using existing logging functionality ?

Any pointers in this direction would be helpful. Thanks.


2 Answer(s)
  • User Avatar
    0
    maliming created
    Support Team

    he wants JSON result of an API service to get logged into this Audit Logs.

    hi

    The audit log can save the return value of the method.

    https://aspnetboilerplate.com/Pages/Documents/Audit-Logging#configuration

    SaveReturnValues: Used to enable/disable to save return values. Default: false.

  • User Avatar
    0
    omkarchoudhari created

    Thank you so much @maliming . This worked .