LiveUser singleton and singleton Log
Balarama Bosch <[email protected]> Fri, 21 Oct 2005 10:11:27 -0500
| Newsgroups | gmane.comp.php.pear.liveuser |
|---|---|
| Message-ID | <[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