|
ILIAS
release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
|
Inheritance diagram for Log_daemon:
Collaboration diagram for Log_daemon:Public Member Functions | |
| Log_daemon ($name, $ident='', $conf=array(), $level=PEAR_LOG_DEBUG) | |
| Constructs a new syslog object. More... | |
| _Log_daemon () | |
| Destructor. More... | |
| open () | |
| Opens a connection to the system logger, if it has not already been opened. More... | |
| close () | |
| Closes the connection to the system logger, if it is open. More... | |
| log ($message, $priority=null) | |
| Sends $message to the currently open syslog connection. More... | |
| _toSyslog ($priority) | |
| Converts a PEAR_LOG_* constant into a syslog LOG_* constant. More... | |
Public Member Functions inherited from Log | |
| _classExists ($class) | |
| Utility function which wraps PHP's class_exists() function to ensure consistent behavior between PHP versions 4 and 5. More... | |
| & | factory ($handler, $name='', $ident='', $conf=array(), $level=PEAR_LOG_DEBUG) |
| Attempts to return a concrete Log instance of type $handler. More... | |
| & | singleton ($handler, $name='', $ident='', $conf=array(), $level=PEAR_LOG_DEBUG) |
| Attempts to return a reference to a concrete Log instance of type $handler, only creating a new instance if no log instance with the same parameters currently exists. More... | |
| open () | |
| Abstract implementation of the open() method. More... | |
| close () | |
| Abstract implementation of the close() method. More... | |
| flush () | |
| Abstract implementation of the flush() method. More... | |
| log ($message, $priority=null) | |
| Abstract implementation of the log() method. More... | |
| emerg ($message) | |
| A convenience function for logging a emergency event. More... | |
| alert ($message) | |
| A convenience function for logging an alert event. More... | |
| crit ($message) | |
| A convenience function for logging a critical event. More... | |
| err ($message) | |
| A convenience function for logging a error event. More... | |
| warning ($message) | |
| A convenience function for logging a warning event. More... | |
| notice ($message) | |
| A convenience function for logging a notice event. More... | |
| info ($message) | |
| A convenience function for logging a information event. More... | |
| debug ($message) | |
| A convenience function for logging a debug event. More... | |
| _extractMessage ($message) | |
| Returns the string representation of the message data. More... | |
| _getBacktraceVars ($depth) | |
| Using debug_backtrace(), returns the file, line, and enclosing function name of the source code context from which log() was invoked. More... | |
| _format ($format, $timestamp, $priority, $message) | |
| Produces a formatted log line based on a format string and a set of variables representing the current log record and state. More... | |
| priorityToString ($priority) | |
| Returns the string representation of a PEAR_LOG_* integer constant. More... | |
| stringToPriority ($name) | |
| Returns the the PEAR_LOG_* integer constant for the given string representation of a priority name. More... | |
| MASK ($priority) | |
| Calculate the log mask for the given priority. More... | |
| UPTO ($priority) | |
| Calculate the log mask for all priorities up to the given priority. More... | |
| MIN ($priority) | |
| Calculate the log mask for all priorities greater than or equal to the given priority. More... | |
| MAX ($priority) | |
| Calculate the log mask for all priorities less than or equal to the given priority. More... | |
| setMask ($mask) | |
| Set and return the level mask for the current Log instance. More... | |
| getMask () | |
| Returns the current level mask. More... | |
| _isMasked ($priority) | |
| Check if the given priority is included in the current level mask. More... | |
| getPriority () | |
| Returns the current default priority. More... | |
| setPriority ($priority) | |
| Sets the default priority to the specified value. More... | |
| attach (&$observer) | |
| Adds a Log_observer instance to the list of observers that are listening for messages emitted by this Log instance. More... | |
| detach ($observer) | |
| Removes a Log_observer instance from the list of observers. More... | |
| _announce ($event) | |
| Informs each registered observer instance that a new message has been logged. More... | |
| isComposite () | |
| Indicates whether this is a composite class. More... | |
| setIdent ($ident) | |
| Sets this Log instance's identification string. More... | |
| getIdent () | |
| Returns the current identification string. More... | |
Data Fields | |
| $_name = LOG_DAEMON | |
| $_socket | |
| $_ip = '127.0.0.1' | |
| $_proto = 'udp' | |
| $_port = 514 | |
| $_maxsize = 4096 | |
| $_timeout = 1 | |
Data Fields inherited from Log | |
| $_opened = false | |
| $_id = 0 | |
| $_ident = '' | |
| $_priority = PEAR_LOG_INFO | |
| $_mask = PEAR_LOG_ALL | |
| $_listeners = array() | |
| $_formatMap | |
Definition at line 18 of file daemon.php.
| Log_daemon::_Log_daemon | ( | ) |
Destructor.
@access private
Definition at line 112 of file daemon.php.
References close().
Here is the call graph for this function:| Log_daemon::_toSyslog | ( | $priority | ) |
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.
| int | $priority | PEAR_LOG_* value to convert to LOG_* value. |
@access private
Definition at line 214 of file daemon.php.
References PEAR_LOG_ALERT, PEAR_LOG_CRIT, PEAR_LOG_DEBUG, PEAR_LOG_EMERG, PEAR_LOG_ERR, PEAR_LOG_INFO, PEAR_LOG_NOTICE, and PEAR_LOG_WARNING.
Referenced by log().
Here is the caller graph for this function:| Log_daemon::close | ( | ) |
Closes the connection to the system logger, if it is open.
@access public
Reimplemented from Log.
Definition at line 139 of file daemon.php.
Referenced by _Log_daemon().
Here is the caller graph for this function:| Log_daemon::log | ( | $message, | |
$priority = null |
|||
| ) |
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.
| string | $message | The textual message to be logged. |
| int | $priority | (optional) The priority of the message. Valid values are: LOG_EMERG, LOG_ALERT, LOG_CRIT, LOG_ERR, LOG_WARNING, LOG_NOTICE, LOG_INFO, and LOG_DEBUG. The default is LOG_INFO. @access public |
Reimplemented from Log.
Definition at line 160 of file daemon.php.
References Log\$_priority, Log\_announce(), Log\_extractMessage(), Log\_isMasked(), _toSyslog(), and open().
Here is the call graph for this function:| Log_daemon::Log_daemon | ( | $name, | |
$ident = '', |
|||
$conf = array(), |
|||
$level = PEAR_LOG_DEBUG |
|||
| ) |
Constructs a new syslog object.
| string | $name | The syslog facility. |
| string | $ident | The identity string. |
| array | $conf | The configuration array. |
| int | $maxLevel | Maximum level at which to log. @access public |
Definition at line 74 of file daemon.php.
References Log\UPTO().
Here is the call graph for this function:| Log_daemon::open | ( | ) |
Opens a connection to the system logger, if it has not already been opened.
This is implicitly called by log(), if necessary. @access public
Reimplemented from Log.
Definition at line 122 of file daemon.php.
References Log\$_opened.
Referenced by log().
Here is the caller graph for this function:| Log_daemon::$_ip = '127.0.0.1' |
Definition at line 37 of file daemon.php.
| Log_daemon::$_maxsize = 4096 |
Definition at line 56 of file daemon.php.
| Log_daemon::$_name = LOG_DAEMON |
Definition at line 24 of file daemon.php.
| Log_daemon::$_port = 514 |
Definition at line 50 of file daemon.php.
| Log_daemon::$_proto = 'udp' |
Definition at line 44 of file daemon.php.
| Log_daemon::$_socket |
Definition at line 30 of file daemon.php.
| Log_daemon::$_timeout = 1 |
Definition at line 62 of file daemon.php.