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?
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
- salvadordf
- Posts: 4304
- Joined: Thu Feb 02, 2017 12:24 pm
- Location: Spain
- Contact:
Re: Custom log file location
Hi,
Set the GlobalCEFApp.LogFile property before the GlobalCEFApp.StartMainProcess call in the DPR file like this :
The directory must be writable by the Windows user running the application.
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;
Re: Custom log file location
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.
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.