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.

Custom log file location

Post Reply
fneumann
Posts: 9
Joined: Thu Jan 21, 2021 4:02 pm

Custom log file location

Post by fneumann »

Hi,

Log files of our applications are saved in a certain subdirectory. We would also like to save log files of CEF webbrowser in the subdirectory but we did not find a method to achieve this behavior.

Is it possible to configure the location of the log file?
User avatar
salvadordf
Posts: 4056
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: Custom log file location

Post by salvadordf »

Hi,

Set the GlobalCEFApp.LogFile property before the GlobalCEFApp.StartMainProcess call in the DPR file like this :

Code: Select all

GlobalCEFApp.LogFile := 't:\newname.log';
GlobalCEFApp.LogSeverity := LOGSEVERITY_VERBOSE;
The directory must be writable by the Windows user running the application.
fneumann
Posts: 9
Joined: Thu Jan 21, 2021 4:02 pm

Re: Custom log file location

Post by fneumann »

I tried this earlier but it did not work.

It looks like the problem was that the directory needs to be created first and I expected the webbrowser to create it for me.

Problem solved, thanks a lot.
Post Reply