Re: LiveUser singleton and singleton Log

Arnaud Limbourg <arnaud-GdXxm9JVFPlWk0Htik3J/[email protected]> Wed, 26 Oct 2005 14:02:44 +0200
Newsgroups gmane.comp.php.pear.liveuser
Message-ID <[email protected]>
Hello,

You seem to be using a pretty old version of LiveUser.

You will want to use something along the lines of example1

http://cvs.php.net/co.php/pear/LiveUser/docs/examples/example1/example.php

Basically you can use the debug parameter to pass in a PEAR::Log object that
will be passed to ErrorStack.

Arnaud.

Quoting Balarama Bosch <[email protected]>:

> <code>
> $LU =& LiveUser::singleton($conf);
> $LU_logger =& Log::singleton('file', LOGFILE, 'ident', $log_conf);
> $LU->addErrorLog($LU_logger);
> </code>
>
> Is this right?
> If the LiveUser object was previously inited, and a log added, will this
> add yet another log, so that you have twice the same log? If so, how do
> I prevent that from happening?
>
> Cheers,
>  Balarama
> --
>
> Balarama Bosch
> Programmer for Krishna.com
> www.krishna.com
>
>
> _______________________________________________
> LiveUser mailing list
> [email protected]
> http://mailman.21st-hq.de/mailman/listinfo/liveuser
>