Re: Basic? problem with logger not solved
| From: | Sabine | Date: | Fri, 19 Aug 2005 15:34:03 +0000 |
| Subject: | Re: Basic? problem with logger not solved | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-20483@lists.php.net to get a copy of this message | ||
Hello to all again,
sorry that I insist, but my problem isn't solved.
I know I don't have the right to get an answer, but it would really be nice to use the Log-package.
But perhaps my question was too stupid? Or my english too bad?
Or no one else has an idea, what is going wrong?
An answer which solves my problem will be preferred, but an answer like "go back to start and read thebasics about OO-programming in php" or something like that is better than no answer.
Best regards
Sabine
That was my question:
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 /myscriptpath/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, which worked fine.
May anybody point me to the problem?
Thank you in advance
Sabine