Question
I am writing my own login perl module and need to write some debug outputs. However, I cannot seem to be able to write to anyplace at all. I've tried several different variations to no avail. Not even TWiki::Func::writeDebug will work. It may be a permission issue, I don't know. What are some things I need to consider when trying to write output statements? I get this error msg when invoking writeDebug: [Fri Nov 17 16:56:52 2006] [error] [client 10.20.5.84] Can't call method "writeDebug" on an undefined value at /opt/app/twiki4/lib/TWiki/Client/FranklinLogin.pm. The call is: TWiki::Func::writeDebug("FranklinLogin.pm - remote_user is $remote_user\n") if $debug; What is the undefined value?
Environment
--
ChristineHowell - 17 Nov 2006
Answer
If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.
Stronglly recommend you use
print STDERR for dubugging statements. output goes to the webserver error log. If this isn't accessible to you, then
TWiki::Func::writeDebug will write to the file you specify in
configure for loggin debug messages. If you see no output, check your webserver error logs for related errors.
--
CrawfordCurrie - 16 Dec 2006