Reply to Problem mit PEAR-Package Log

Your name:

Reply:


Posted by Sabine on 10/20/91 11:24

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

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация