MicrosoftEdge / MicrosoftEdge/WebView2Feedback
Set logging to file shows also console - is it a bug ?
@Lakshmisha-KS is already working on this.
Since Feb 12, 2025.
- 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,
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.