NetTalk Central

Author Topic: Enable logging  (Read 3230 times)

bergsj

  • Jr. Member
  • **
  • Posts: 81
    • MSN Messenger - swjvandenberg@hotmail.com
    • View Profile
    • Email
Enable logging
« 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
Greetz,
Sjoerd

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Enable logging
« Reply #1 on: August 25, 2010, 10:55:42 PM »
Sjoerd,

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

Bruce

bergsj

  • Jr. Member
  • **
  • Posts: 81
    • MSN Messenger - swjvandenberg@hotmail.com
    • View Profile
    • Email
Re: Enable logging
« Reply #2 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?
Greetz,
Sjoerd

ccordes

  • Sr. Member
  • ****
  • Posts: 384
    • View Profile
    • Email
Re: Enable logging
« Reply #3 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.
« Last Edit: August 29, 2010, 10:05:47 AM by ccordes »
Real programmers use copy con newapp.exe