Base solution for your next web application
Open Closed

Audit Exception #467


User avatar
0
alexnaldo created

Hi,

How I can enable audit for all exception ?

The raise an exception but doesn't appear at Logs table.


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

    Hi,

    Where do you get the exception? In an application service method or MVC Controller? Both normally write errors to audit logs automatically.

    BTW, you can handle all exceptions using Exception event: <a class="postlink" href="http://www.aspnetboilerplate.com/Pages/Documents/Handling-Exceptions#DocExceptionEvent">http://www.aspnetboilerplate.com/Pages/ ... ptionEvent</a> then write to logs yourself.