Page 1 of 1

CEFSHARP Capture Network traffic and log to file

PostPosted: Fri Nov 18, 2022 4:08 am
by slckylmz
I use CefSharp browser in my windows form project which developed on .net core 3.1.

I want to capture network traffic on cefsharp browser and log to a file. I used "--net-log-capture-mode" property for this, but I failed.

What I want to do is to display the requests, responses and times as in the devtool Network section.

I would be glad if you help.

Re: CEFSHARP Capture Network traffic and log to file

PostPosted: Fri Nov 18, 2022 9:40 am
by magreenblatt

Re: CEFSHARP Capture Network traffic and log to file

PostPosted: Wed Nov 23, 2022 8:39 am
by slckylmz
How can I do it from within the code?

Re: CEFSHARP Capture Network traffic and log to file

PostPosted: Wed Nov 30, 2022 1:47 am
by amaitland
Did you read the "Advanced: Logging on startup" section?

There's a command line arg for specifying a log file.