Page 1 of 1

Custom log file location

Posted: Fri Sep 09, 2022 5:30 am
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?

Re: Custom log file location

Posted: Sat Sep 10, 2022 3:35 pm
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.

Re: Custom log file location

Posted: Mon Sep 12, 2022 5:26 am
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.