Page 1 of 1

debug.log always created

Posted: Wed May 29, 2024 10:19 am
by Maksym
I've just installed CEF 125.0.19 (x86) on Delphi 2007 and here the problem: debug.log file is created despite having this in the code:

Code: Select all

GlobalCEFApp.LogFile := '';
GlobalCEFApp.LogSeverity := LOGSEVERITY_DISABLE;
It contains the following line:
[0529/131657.446:WARNING:main_runner.cc(261)] Alloy bootstrap is deprecated and will be removed in ~M127. See https://github.com/chromiumembedded/cef/issues/3685
How do I prevent the debug.log file creation? Assigning a valid file name to GlobalCEFApp.LogFile does not help. The debug.log file is still created next to the .exe.

Re: debug.log always created

Posted: Wed May 29, 2024 3:39 pm
by salvadordf
Hi,

Set GlobalCEFApp.ChromeRuntime to True before the GlobalCEFApp.StartMainProcess call in the DPR file and also set Chromium1.RuntimeStyle to CEF_RUNTIME_STYLE_ALLOY before the Chromium1.CreateBrowser call.

Re: debug.log always created

Posted: Thu May 30, 2024 8:37 am
by Maksym
Thank you very much! That helped for now. But I'll need to do something in version ~127 when the Alloy bootstrap will be removed, right?

Re: debug.log always created

Posted: Thu May 30, 2024 10:01 am
by salvadordf
Maksym wrote: Thu May 30, 2024 8:37 am Thank you very much! That helped for now. But I'll need to do something in version ~127 when the Alloy bootstrap will be removed, right?
Yes. CEF will deprecate Alloy in a few months and all of us will have to make some changes in the applications and demos.

I'll modify all the demos accordingly when that moment arrives.

Read this for more information :
https://www.briskbard.com/forum/viewtopic.php?p=9813#p9813
https://www.briskbard.com/forum/viewtopic.php?t=2298

Re: debug.log always created

Posted: Thu May 30, 2024 1:47 pm
by Maksym
Thank you very much for the reply!