Skip to content

How to set log option in Wpf.ChromiumWebBrowser? #3677

Answered by amaitland
tp1415926535 asked this question in Q&A
Discussion options

You must be logged in to vote

CefSettings settings = new CefSettings(); settings.LogSeverity = LogSeverity.Error;

That is the only way to specify the log options.

However I use this browser in WPF, so the setting is browser.BrowserSettings which belongs to IBrowserSettings class.

You will need to call Cef.Initialize in code, generally I'd suggest in your App class.

https://github.com/cefsharp/CefSharp.MinimalExample/blob/cefsharp/91/CefSharp.MinimalExample.Wpf/App.xaml.cs#L40

You cannot set log severity using IBrowserSettings.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@tp1415926535
Comment options

@amaitland
Comment options

@tp1415926535
Comment options

Answer selected by tp1415926535
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants