At 16:09 2001/05/08 +0200, you wrote:
>Hi,
>
>Is there a way to write messages to the log file for debugging purposes?
>If not, is there a way to track my functions in the log file?

Write a routine containing
       HostFILE *hf = HostLogFile();
       HostFPrintF(hf,"%s:%d\t%s", file, lineNum, text);
       HostFClose(hf);

Pass __FILE__ and __LINE__ as parameters to encode the position of the 
calling routine. \n not required.

Erik Blake

-------------------------------------------------------------------
Icefield Tools Corporation  tel: (867) 633-4264
3C Glacier Road             fax: (867) 633-4217
Whitehorse, Yukon CANADA    e-mail: [EMAIL PROTECTED]
Y1A 5S7                     internet: http://www.icefieldtools.com/


-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/tech/support/forums/

Reply via email to