Re: Basic? problem with logger not solved
| From: | Laurent Laville | Date: | Fri, 19 Aug 2005 17:24:57 +0000 |
| Subject: | Re: Basic? problem with logger not solved | ||
| References: | 1 | Groups: | php.pear.general php.pear.general |
| Request: | Send a blank email to pear-general+get-20487@lists.php.net to get a copy of this message | ||
Hello Sabine, you wrote:
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.You right; it's a good and usefull 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" orYou right again when you said
something like that is better than no answer.but answers are not mandatory, i know because i've myself some post still without answers !
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 78i've tried myself this example with Log 1.8.7, PEAR 1.3.6 and got no fatal error. What version of Log and PEAR did you used ?
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
Same here, no fatal error on my platform
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 Sabinesorry, but i've no ideas where it come from with so few infos regards Laurent