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)
-
0
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.