Basic? problem with logger

From: Date: Thu, 18 Aug 2005 15:42:31 +0000
Subject: Basic? problem with logger
Groups: php.pear.general 
Request: Send a blank email to pear-general+get-20466@lists.php.net to get a copy of this message
Hello to all, 14 days ago I asked, if it's possible to use pear with php 4.0.6. Now my customer decided for a new provider with an actual php 4 - version. YEAH! I don't know which one this moment, but now I can test on my own providers 4.3.10. Thanks again for your support with that! I played around with Text_Pasword and Mail_Queue, which was all fine. But with the Log-package I must do something totally wrong. I think it's a basic problem, but I'm blind to it. Perhaps you see it on the first glance? With every logger I get "Call to undefined function"-messages. <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 /kunden/sric.de/webseiten/veratool/includes/logger.php on line 48 The open-method isn't neccessary? I just installed the package with the standard pear-installer like I did with Text_Password and Mail_Queue. May anybody point me to the problem? Thank you in advance Sabine

« previous php.pear.general (#20466) next »