NetTalk E-Mail > E-Mail - Ask For Help

PR29 Addlog

(1/2) > >>

ccordes:
If I set logging on the server window to screen & file
and then I use p_web.addlog('Some really important message')
shouldn't it go to the screen AND the file?
I find that it goes to the screen, but not the file. :(
Let me know if I'm doing somethingelse wrong.

chris

Bruce:
Hi Chris,

I tried what you did here, and the 'really important message' appeared in the log, on the screen, and on the disk.

So perhaps it si in the file, but you were looking at the wrong file?
Or perhaps it came though before the logging to disk started?

cheers
Bruce

Bruce:
BTW - I'll leave my example in, in example 30, Hyperlinks, in the next build.
I've added a log to the "browseCustomers" procedure.

Cheers
Bruce

ccordes:
In my instance, it creates a new log file with just my text-

I am testing for when a value is or isn't there so in the PreInsert I put this code -

p_web.AddLog('V:UpdateCus_CusId='&p_web.getvalue('UpdateCus_CusId'))
p_web.AddLog('SV:UpdateCus_CusId='&p_web.gsv('UpdateCus_CusId'))


which produces a new logfile with this data -

<item> 8/31/10,12:06:32,</item>
<request>,V:UpdateCus_CusId=2</request>
<item> 8/31/10,12:06:33,</item>
<request>,SV:UpdateCus_CusId=2</request>

I thought it would be added to the logfile in line.

chris

Bruce:
Hi Chris,

first, on the debugging front, I recommend the use of DebugView (www.sysinternals.com). NetTalk has built in support for it, in the web server via the p_web._trace(something) method.

On the log front I'm not sure I really understand your problem.
You called AddLog, and it seems to me the item got added to the log.
So obviously I'm missing something here...
I'm not sure that it still matters to you, but if you like, perhaps explain what part of the code below is wrong?

cheers
Bruce

Navigation

[0] Message Index

[#] Next page

Go to full version