Skip to main content
Known Participant
November 1, 2010
Answered

CS3 - Logging support

  • November 1, 2010
  • 2 replies
  • 1106 views

Hello,

    I need to use some kind of looger for InDesign. Does InDesign offer some Logger API or how do zou solve the logging (f.e. getting path to application data ?) ?

marxin

This topic has been closed for replies.
Correct answer Bartek_Kropaczewski

Check GetAppPath() in FileUtils class.

Bartek

2 replies

Bartek_Kropaczewski
Inspiring
November 2, 2010

Check below link. You can find there open source logging framework. Havn't checked that LogObject is for DEBUG only.

http://logging.apache.org/log4cxx/index.html

Bartek

marxinAuthor
Known Participant
November 2, 2010

OK, it will be better to use some 3rd-party programm. My last question is: is somehow possible to get filepath do application data and InDesign ?  Thanks, marxin

Bartek_Kropaczewski
Bartek_KropaczewskiCorrect answer
Inspiring
November 2, 2010

Check GetAppPath() in FileUtils class.

Bartek

Bartek_Kropaczewski
Inspiring
November 1, 2010

HI

In SDK documetation you can find LogObject or consider using your own or any other API's.

Regards

bartek

marxinAuthor
Known Participant
November 1, 2010

Hi,

   I found the class LogObject, but I am enable to build my Plug-In due to unresolved external symbol: LogObject.

I am including "LogObjech.h", but dllimport failed, do you know where the problem could be?

Thanks,

marxin

Bartek_Kropaczewski
Inspiring
November 2, 2010

LogObject should be included in Public.lib.

Also in LogObject.h file you can read:

"If you change the definition of LogObject, remember to build Public.  Both TestLib and Public include LogObject.cpp, but this class belongs to Public in the Debug build.  Building TestLib alone won't allow the linker to resolve a reference to, for example, an added member function."

Regards

Bartek