| [ Index ] |
|
Code source de SPIP Agora 1.4 |
[Code source] [Imprimer] [Statistiques]
$Header: /repository/pear/Log/Log/mail.php,v 1.21 2004/01/19 08:02:40 jon Exp $
| Version: | $Revision: 1.21 $ |
| Poids: | 222 lignes (6 kb) |
| Inclus ou requis: | 0 fois |
| Référencé: | 0 fois |
| Nécessite: | 0 fichiers |
| Log_mail($name, $ident = '', $conf = array() X-Ref |
| 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. param: string $name The filename of the logfile. param: string $ident The identity string. param: array $conf The configuration array. param: int $level Log messages up to and including this level. |
| _Log_mail() X-Ref |
| Destructor. Calls close(). |
| open() X-Ref |
| Starts a new mail message. This is implicitly called by log(), if necessary. |
| close() X-Ref |
| Closes the message, if it is open, and sends the mail. This is implicitly called by the destructor, if necessary. |
| flush() X-Ref |
| 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. |
| log($message, $priority = null) X-Ref |
| Writes $message to the currently open mail message. Calls open(), if necessary. param: mixed $message String or object containing the message to log. param: string $priority The priority of the message. Valid return: boolean True on success or false on failure. |
| Généré le : Sat Feb 24 14:40:03 2007 | par Balluche grâce à PHPXref 0.7 |