Logging JS errors / console

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.

Logging JS errors / console

Postby mezdej » Tue May 22, 2018 5:08 am

I would like log JS console errors to file - mostly exceptions that occured.

Is there any way to do this?
mezdej
Techie
 
Posts: 31
Joined: Tue Oct 22, 2013 3:56 am

Re: Logging JS errors / console

Postby magreenblatt » Tue May 22, 2018 5:19 am

You can log from CefDisplayHandler::OnConsoleMessage. See example usage in cefclient.
magreenblatt
Site Admin
 
Posts: 12409
Joined: Fri May 29, 2009 6:57 pm

Re: Logging JS errors / console

Postby Czarek » Tue May 22, 2018 5:39 am

Maintainer of the CEF Python, PHP Desktop and CEF C API projects. My LinkedIn.
User avatar
Czarek
Virtuoso
 
Posts: 1927
Joined: Sun Nov 06, 2011 2:12 am

Re: Logging JS errors / console

Postby mezdej » Wed May 23, 2018 2:53 am

Thanks guys!
mezdej
Techie
 
Posts: 31
Joined: Tue Oct 22, 2013 3:56 am


Return to Support Forum

Who is online

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