I am using the linq2db package to implement a "upsert" for a Oracle database. Is it possible to configure the library to produce logs containing the generated sql queries?
I added this at the application initialization:
but only the execution of the "original" ef core commands is logged, not of those using linq2db.
At the application startup the logger factory is created as follows (to be able to log also the startup code):
using var loggerFactory = LoggerFactory.Create(logging =>
{
logging.AddSerilog(serilogLogger);
});
Then later in the initialization of the application the logger factory is added as singleton:
I am using the linq2db package to implement a "upsert" for a Oracle database. Is it possible to configure the library to produce logs containing the generated sql queries? I added this at the application initialization:
but only the execution of the "original" ef core commands is logged, not of those using linq2db. At the application startup the logger factory is created as follows (to be able to log also the startup code):
Then later in the initialization of the application the logger factory is added as singleton:
I dont know what is the reason why the execution od the linq2db commands is not logged. A "regular" ef core database command is logged like this:
The linq2db command generates only this log entry: