Receive chromium debug logs in application

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.

Receive chromium debug logs in application

Postby yanicks90 » Mon Nov 04, 2019 12:44 pm

Hello all

Is it possible to receive the logs that can be found in the chromium code and log them in my application?

For example here:
Code: Select all
DLOG(ERROR) << "Failed to send packet for decoding: " << result;


These normally do not show up, is this a configuration parameter?

BR
Yanick
yanicks90
Techie
 
Posts: 19
Joined: Sat Oct 26, 2019 11:03 am

Re: Receive chromium debug logs in application

Postby magreenblatt » Mon Nov 04, 2019 12:52 pm

Do you want the additional messages in the console, or are you looking to intercept the messages in your application? If you want them in the console you can configure the logging level in CEF (CefSettings.log_severity) and in Chromium as described in https://www.chromium.org/for-testers/enable-logging
magreenblatt
Site Admin
 
Posts: 12408
Joined: Fri May 29, 2009 6:57 pm

Re: Receive chromium debug logs in application

Postby yanicks90 » Mon Nov 04, 2019 12:56 pm

Console is fine for now, I will check the chromium part out, the CEF logs are already on verbose. I remember once reading a thread or issue that intercepting is not possible, did that change?
yanicks90
Techie
 
Posts: 19
Joined: Sat Oct 26, 2019 11:03 am

Re: Receive chromium debug logs in application

Postby magreenblatt » Mon Nov 04, 2019 1:02 pm

There is no API to intercept logging currently (that’s issue #2154), but you can probably redirect stderr/stdout.
magreenblatt
Site Admin
 
Posts: 12408
Joined: Fri May 29, 2009 6:57 pm


Return to Support Forum

Who is online

Users browsing this forum: No registered users and 57 guests