RxWebCore
RxWebCore copied to clipboard
Request Trace and Exceptions are not logging
Describe the bug
Whenever any API is called at that time log isn't getting recorded in RequestTraces and AuditRecords table. Also when any exception is generated then it isn't getting logged in ExceptionLogs table.
Exception Handling code:-

Record log attribute:-

Currently we have to manage exception logs in separate log file. Would be helpful for troubleshooting, if these exceptions and traces are getting logged in LogDB.
@mitanshu-patel [RecordLog] is not used to log the request. You are mixing three things in one.
For Exception Logging : Share the code snippet of Configure method of Startup.cs file and make sure that HandleException to be called in the Security.cs file.
For Request Traces: Check the code in the Security.cs file that in the Security.cs file UseLogging method is called.
@ajayojha , This is the Configure method code which we are using in Startup.cs:-

For Exception Logging:- I kept debugger in code, HandleException method is getting called but data isn't getting stored in ExceptionLogs table.
For Request Traces:- UseLogging expects value for formal parameter 'databaseFacade' of 'Type'. Not able to understand what data to pass in this method.