Disclosure Statement: This site contains affiliate links, which means that I may receive a commission if you make a purchase using these links. As an eBay Partner, I earn from qualifying purchases.
If you find these projects useful please consider becoming a sponsor with Patreon, GitHub or Liberapay.

debug.log always created

Post Reply
Maksym
Posts: 18
Joined: Wed Dec 20, 2023 11:13 am

debug.log always created

Post 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.
User avatar
salvadordf
Posts: 4620
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: debug.log always created

Post 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.
Maksym
Posts: 18
Joined: Wed Dec 20, 2023 11:13 am

Re: debug.log always created

Post 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?
User avatar
salvadordf
Posts: 4620
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: debug.log always created

Post 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
Maksym
Posts: 18
Joined: Wed Dec 20, 2023 11:13 am

Re: debug.log always created

Post by Maksym »

Thank you very much for the reply!
Post Reply