Base solution for your next web application
Open Closed

Is there a way to log all Application Service like audit log #309


User avatar
0
lcyhjx created

The audit log is good, but I would like to log more information for an application service, I would like to user Logger to do it. But I would NOT like to add the following code “Logger.Debug("*****");” for each application service manually. So I would like to know if is there a way to log it like audit log – process it automatically. Or is there a way to extend audit log function?


1 Answer(s)
  • User Avatar
    0
    hikalkan created
    Support Team

    Hi,

    You can extend audit system but that may be hard because you need some internals of ABP. I haven't thought it much. I added an issue for it: <a class="postlink" href="https://github.com/aspnetboilerplate/aspnetboilerplate/issues/598">https://github.com/aspnetboilerplate/as ... issues/598</a>

    I advice you to create a Windsor Interceptor for your own needs. You can find some tutorials for that and can take <a class="postlink" href="https://github.com/aspnetboilerplate/aspnetboilerplate/blob/master/src/Abp/Auditing/AuditingInterceptor.cs">https://github.com/aspnetboilerplate/as ... rceptor.cs</a> as a starting point.

    Have a nice day.