NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: bergsj on August 25, 2010, 12:21:46 PM

Title: Enable logging
Post by: bergsj on August 25, 2010, 12:21:46 PM
Hi there,

Anyone has a clue to enable logging to disk rather than just to screen?
Just added the File, Log file name, etc... but I cannot seem to get it working.
Has someone some basic steps for me to go on?

Thanks!

cheers
Sjoerd
Title: Re: Enable logging
Post by: Bruce on August 25, 2010, 10:55:42 PM
Sjoerd,

have you set the radio on the web server screen to "screen & disk" ?

Bruce
Title: Re: Enable logging
Post by: bergsj on August 25, 2010, 11:09:00 PM
OK, let me explain my steps.

I have created a global variable inside the DCT called LogFileName CSTRING(512)
I have created a table in my DCT with one field. This table 'LogFile' has driver DOS.
The Full Pathname is !GLO:LogFileName
The table has a field called 'DataLine' is a CSTRING(1024).

On the window of WebServer I have set the following logging fields:
File: LogFile (table)
Field: WEB:DataLine (field of table)
Log File Name Variable: GLO:LogFileName (global variable coming from DCT)

When having this in place and trying to compile it gives me a No matching prototype error on this method: self.AddLog(LogFile,WEB:DataLine,GLO:LogFileName,p_Data,p_ip) in procedure 'Looped'.

What's wrong with this setup?
Title: Re: Enable logging
Post by: ccordes on August 29, 2010, 09:53:19 AM
I am having similar problem but my global variables are being seen as Unresolved Externals  ???
Not much help. but I have it set up the same way. I can't find any documentation on this so I made a DOS file in the dictionary with a single 2000byte string field and a global filename.

chris
[Editted] -
I just went back and did an unconditional generate on my data and main app. rebuilt.
works like a charm.
One thing I did that you didn't mention - I gave my g:logfilename a default value in the dictionary.