CEF logs

Having problems with building or using CEF's C/C++ APIs? This forum is here to help. Please do not post bug reports or feature requests here.

CEF logs

Postby nkanand » Wed Sep 23, 2020 12:05 pm

Hi All,

we are using CEF 4147. Within code, I see lot of "LOG" statements. Where do these log to? Is there a commandline/option to turn on debug logs in CEF?

Thanks in advance,
Nandu
nkanand
Techie
 
Posts: 18
Joined: Wed Aug 05, 2020 11:46 pm

Re: CEF logs

Postby magreenblatt » Wed Sep 23, 2020 12:22 pm

Yes, see CefSettings.log_file and CefSettings.log_severity.
magreenblatt
Site Admin
 
Posts: 12409
Joined: Fri May 29, 2009 6:57 pm

Re: CEF logs

Postby nkanand » Mon Oct 12, 2020 12:43 pm

Thanks Matt.

I see that the logging is setup in CefMainDelegate::BasicStartupComplete. However, I cannot see this call being made in CefClient/CefSimple.
Can you point me to a sample integration of logging done in context of the process?

Thanks
nkanand
Techie
 
Posts: 18
Joined: Wed Aug 05, 2020 11:46 pm

Re: CEF logs

Postby magreenblatt » Mon Oct 12, 2020 1:04 pm

You just need to set the values mentioned above before calling CefInitialize. For example:
Code: Select all
CefString(&settings.log_file) = “/full/path/file.log”;
settings.log_severity = LOGSEVERITY_WARNING;
magreenblatt
Site Admin
 
Posts: 12409
Joined: Fri May 29, 2009 6:57 pm


Return to Support Forum

Who is online

Users browsing this forum: Google [Bot] and 39 guests