How can i log all request info with query together

Hi, i’m use Custom SqlLogExecFilter witch inherit from OrmLiteExecFilter log our application query.
and use GlobalRequestFilter log all request logs.

this will be several logs on Seq.

i want a log info contains reqeust dto, response dto and query’s

is there anyway i can access dto or request in SqlLogExecFilter ?

i tried register dependency in apphost and failed get value inside SqlLogExecFilter.

No OrmLiteExecFilter (or OrmLite) doesn’t have any access to the HTTP Request, you would use a Request Logger to log HTTP Requests and you can implement your own by implementing IRequestLogger which you can use with:

Plugins.Add(new RequestLogsFeature {
    RequestLogger = new MyRequestLogger(),
});