CEFSHARP Capture Network traffic and log to file

Having problems with building or using the CefSharp .NET binding? Ask your CEF-related questions here. Please ask general usage questions on StackOverflow.

Moderator: amaitland

CEFSHARP Capture Network traffic and log to file

Postby slckylmz » Fri Nov 18, 2022 4:08 am

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.
slckylmz
Newbie
 
Posts: 3
Joined: Fri Nov 18, 2022 3:44 am

Re: CEFSHARP Capture Network traffic and log to file

Postby magreenblatt » Fri Nov 18, 2022 9:40 am

magreenblatt
Site Admin
 
Posts: 12382
Joined: Fri May 29, 2009 6:57 pm

Re: CEFSHARP Capture Network traffic and log to file

Postby slckylmz » Wed Nov 23, 2022 8:39 am

How can I do it from within the code?
slckylmz
Newbie
 
Posts: 3
Joined: Fri Nov 18, 2022 3:44 am

Re: CEFSHARP Capture Network traffic and log to file

Postby amaitland » Wed Nov 30, 2022 1:47 am

Did you read the "Advanced: Logging on startup" section?

There's a command line arg for specifying a log file.
Maintainer of the CefSharp project.
amaitland
Virtuoso
 
Posts: 1290
Joined: Wed Jan 14, 2015 2:35 am


Return to CefSharp Forum

Who is online

Users browsing this forum: No registered users and 11 guests