Logging in PDFium

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 in PDFium

Postby Phylanx » Fri Jan 27, 2017 10:40 am

Hi!

We found a quick and dirty fix for the issue discribed in viewtopic.php?f=17&t=14829.
That's ok for us, but we want to include some logging so that we are able to see if our customer uses our patched libcef.dlls.

We need to patch the "fpdfview.cc" file (part of thirdparty pdfium; .\chromium\src\third_party\pdfium\fpdfsdk\fpdfview.cpp) and want to add logging in there.
Is there any possibility to use already existing code to write some logging (best would be in logfile passed with "--log-file=myLogfileName.log" parameter out of JCEF)?

Using Chromium/CEFs "base/logging.h" doesn't work because of duplicate makro definitions:
d:\git\cef\2704\chromium\src\third_party\pdfium\third_party\base\logging.h(22): error C2220: Warnung wird als Fehler interpretiert, es wurde keine object-Datei generiert.
d:\git\cef\2704\chromium\src\third_party\pdfium\third_party\base\logging.h(22): warning C4005: "CHECK": Makro-Neudefinition
d:\git\cef\2704\chromium\src\base\logging.h(491): note: Siehe vorherige Definition von "CHECK"
d:\git\cef\2704\chromium\src\third_party\pdfium\third_party\base\logging.h(24): warning C4005: "NOTREACHED": Makro-Neudefinition
d:\git\cef\2704\chromium\src\base\logging.h(736): note: Siehe vorherige Definition von "NOTREACHED"

Thx for the help :-)
Phylanx
Expert
 
Posts: 201
Joined: Thu Aug 11, 2016 8:17 am

Return to Support Forum

Who is online

Users browsing this forum: cybersight, Google [Bot] and 36 guests