Tags:
create new tag
view all tags

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

TWiki version: TWikiRelease04x00x04
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS: RedHat Enterprise Linux 3
Web server: Apache 2.0.46
Perl version: 5.8.0
Client OS: WindowsXP 5.1
Web Browser: IE 6.0
Categories: Permissions, System logs, Plugins

-- ChristineHowell - 17 Nov 2006

Answer

ALERT! 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

Change status to:
Edit | Attach | Watch | Print version | History: r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r3 - 2006-12-16 - CrawfordCurrie
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.