[ Index ] |
|
Code source de SPIP Agora 1.4 |
[Code source] [Imprimer] [Statistiques]
$Header: /repository/pear/Log/Log/syslog.php,v 1.22 2004/01/19 08:02:40 jon Exp $ $Horde: horde/lib/Log/syslog.php,v 1.6 2000/06/28 21:36:13 jon Exp $
Version: | $Revision: 1.22 $ |
Poids: | 160 lignes (5 kb) |
Inclus ou requis: | 0 fois |
Référencé: | 0 fois |
Nécessite: | 0 fichiers |
Log_syslog:: (5 méthodes):
Log_syslog()
open()
close()
log()
_toSyslog()
Classe: Log_syslog - X-Ref
The Log_syslog class is a concrete implementation of the Log::Log_syslog($name, $ident = '', $conf = array() X-Ref |
Constructs a new syslog object. param: string $name The syslog facility. param: string $ident The identity string. param: array $conf The configuration array. param: int $level Log messages up to and including this level. |
open() X-Ref |
Opens a connection to the system logger, if it has not already been opened. This is implicitly called by log(), if necessary. |
close() X-Ref |
Closes the connection to the system logger, if it is open. |
log($message, $priority = null) X-Ref |
Sends $message to the currently open syslog connection. Calls open() if necessary. Also passes the message along to any Log_observer instances that are observing this Log. param: mixed $message String or object containing the message to log. param: int $priority (optional) The priority of the message. Valid return: boolean True on success or false on failure. |
_toSyslog($priority) X-Ref |
Converts a PEAR_LOG_* constant into a syslog LOG_* constant. This function exists because, under Windows, not all of the LOG_* constants have unique values. Instead, the PEAR_LOG_* were introduced for global use, with the conversion to the LOG_* constants kept local to to the syslog driver. param: int $priority PEAR_LOG_* value to convert to LOG_* value. return: The LOG_* representation of $priority. |
Généré le : Sat Feb 24 14:40:03 2007 | par Balluche grâce à PHPXref 0.7 |