[ Index ] |
|
Code source de SPIP Agora 1.4 |
[Code source] [Imprimer] [Statistiques]
(pas de description)
Poids: | 229 lignes (7 kb) |
Inclus ou requis: | 0 fois |
Référencé: | 0 fois |
Nécessite: | 0 fichiers |
Log_daemon:: (6 méthodes):
Log_daemon()
_Log_daemon()
open()
close()
log()
_toSyslog()
Classe: Log_daemon - X-Ref
The Log_daemon class is a concrete implementation of the Log::Log_daemon($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 $maxLevel Maximum level at which to log. |
_Log_daemon() X-Ref |
Destructor. |
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: string $message The textual message to be logged. param: int $priority (optional) The priority of the message. Valid |
_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 |