Problem mit PEAR-Package Log

From: Date: Fri, 19 Aug 2005 10:38:11 +0000
Subject: Problem mit PEAR-Package Log
Groups: php.general 
Request: Send a blank email to php-general+get-220933@lists.php.net to get a copy of this message
Hello to all, I want to use the PEAR-package Log (now on 4.3.10). I just have a few lines of code, copied from the documentation. And always, that means with every logger I tried, get "Call to undefined function"-errors. I can't see what ist that wrong. Has anybody else an idea? I just installed the package like I did with Mail_Queue and Text_Password which worked fine. Here is my code: <script> require_once('./inc_pear.php'); require_once('PEAR.php'); require_once('Log.php'); $conf = array('title' => 'Sample Log Output'); $logger = &Log::singleton('win', 'LogWindow', 'ident', $conf); </script> --> Fatal error: Call to undefined function: upto() in /mypearpath/PEAR/Log/win.php on line 78 The same with display. With the file-logger, I can instantiate it, but get a undefined function later. <script> $opts = array( 'append' => true,
             'lineFormat' => '%{ident}; %{timestamp}; %{priority}; %{message}',
             'timeFormat' => '%d.%m.%Y %H:%M:%s'
           );
$logger = &LOG::factory('file', './../files/logtest.txt', 'wat dat?'); $logger->open(); $res = $logger->getMask(); </script> -->Fatal error: Call to undefined function: getmask() in /myscriptpath/logger.php on line 48 Thank you very much in advance Sabine

« previous php.general (#220933) next »