The Log_mail class is a concrete implementation of the Log:: abstract class which sends log messages to a mailbox.
The mail is actually sent when you close() the logger, or when the destructor is called (when the script is terminated).
PLEASE NOTE that you must create a Log_mail object using =&, like this : $logger =& Log::factory("mail", "recipient@example.com", ...)
This is a PEAR requirement for destructors to work properly. See http://pear.php.net/manual/en/class.pear.php
Located in /maintenance/libraries/pear/Log/mail.php (line 28)
Log | --Log_mail
String holding the sender's email address.
String holding the mail message body.
String holding an optional preamble for the log messages.
String holding the recipient's email address.
String holding the email's subject.
Inherited from Log
Log::$_id
Log::$_ident
Log::$_listeners
Log::$_mask
Log::$_opened
Log::$_priority
Constructs a new Log_mail object.
Here is how you can customize the mail driver with the conf[] hash : $conf['from'] : the mail's "From" header line, $conf['subject'] : the mail's "Subject" line.
Closes the message, if it is open, and sends the mail.
This is implicitly called by the destructor, if necessary.
Flushes the log output by forcing the email message to be sent now.
Events that are logged after flush() is called will be appended to a new email message.
Writes $message to the currently open mail message.
Calls open(), if necessary.
Starts a new mail message.
This is implicitly called by log(), if necessary.
Destructor. Calls close().
Inherited From Log
Log::alert()
Log::attach()
Log::close()
Log::crit()
Log::debug()
Log::detach()
Log::emerg()
Log::err()
Log::factory()
Log::flush()
Log::getIdent()
Log::getMask()
Log::getPriority()
Log::info()
Log::isComposite()
Log::log()
Log::MASK()
Log::notice()
Log::open()
Log::priorityToString()
Log::setIdent()
Log::setMask()
Log::setPriority()
Log::singleton()
Log::UPTO()
Log::warning()
Log::_announce()
Log::_extractMessage()
Log::_isMasked()
Documentation generated on Fri, 10 Dec 2004 18:25:46 +0000 by phpDocumentor 1.3.0RC3