MicrosoftEdge / MicrosoftEdge/WebView2Feedback

Set logging to file shows also console - is it a bug ?

Open
#3,192 6 comments 0 reactions 2 assignees View on GitHub

@Lakshmisha-KS is already working on this.

Since Feb 12, 2025.

feature request priority-low tracked
Dominant language
PowerShell
Stars
526
Forks
67
PR merge metrics
No merged PRs in 30d

Description

Hi,
I moved this question here from "Disscussions" category because I am not sure if it is a bug.
I want to make logging to file, similar like in CefSharp. Does Webview2 has such option ? Right now i only found some possibility that we create environment option :
var envOptions = new CoreWebView2EnvironmentOptions() {AdditionalBrowserArguments = "--v=1 --log-file=c:\\temp\\webview.log" };
and after we can use it : await CoreWebView2Environment.CreateAsync(...., envOptions)..

But here is additional problem; despite logging to file starts also console is shown with logs inside; how can I avoid show console and log only into file ? or maybe is another option ?

regards,

AB#43466685

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.