Log to stderr/stdout AND debug.log file possible? (CEF 125+)

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.

Log to stderr/stdout AND debug.log file possible? (CEF 125+)

Postby natonicfp » Tue Oct 01, 2024 6:21 pm

I'm updating my application to use chrome bootstrap + alloy style. I noticed after making the necessary changes that I stopped getting LOG/DLOG output to stderr/stdout, but still saw output in debug.log. Previously most log messages seemed to be present in both stdout/stderr and the debug.log. After digging a bit, it appeared it might be related to to chrome bootstrap (speculation after looking at this commit: https://github.com/chromiumembedded/cef ... /4e3668f93), so following instructions here (https://www.chromium.org/for-testers/enable-logging/), I passed enable-logging=stderr and log-level=0 and logging started appearing in stdout/stderr again, but the debug.log file is no longer populated.

Does the move to chrome bootstrap mean LOG/DLOG output is now an either/or proposition, or is there a way to get it to go to both from within the app (obviously, redirecting/tee of stdout/stderr is an option, but one I'd rather avoid if possible).
natonicfp
Techie
 
Posts: 29
Joined: Mon Mar 22, 2021 4:16 pm

Re: Log to stderr/stdout AND debug.log file possible? (CEF 1

Postby ndesktop » Wed Oct 02, 2024 2:51 am

I think it's one or the other. I saw this too recently (around branch 127, but it might be sooner).
ndesktop
Master
 
Posts: 882
Joined: Thu Dec 03, 2015 10:10 am

Re: Log to stderr/stdout AND debug.log file possible? (CEF 1

Postby Czarek » Sun Nov 10, 2024 2:20 pm

Also noticed this issue on my Mac with CEF 130. It would be nice if things were logged to both terminal and log file as it worked before.

Looks like in Debug configuration it works fine, only in Release configuration it logs only to log file.
Available for hire. Projects: PHP Desktop, CEF Python and CEF C API. My LinkedIn.
User avatar
Czarek
Virtuoso
 
Posts: 1947
Joined: Sun Nov 06, 2011 2:12 am


Return to Support Forum

Who is online

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