We are using custom error provided by asp.net config setting. In entire application (PL/BLL/DAL) we are not using any try catch. So for any exception in any layer application redirect user to custom error page set in custom error setting in config file. Now we want to log following information in log file before showing error page:
- Date & time
- Exception message & strack trace.
- Page Name
- Method Name
- Method Parameter & values.
Please help me how to collect above information in custom error page_load event??
Thanks,
@Paul