Log |
![]() |
[ class tree: Log ] [ index: Log ] [ all elements ] |
![]() |
Packages: Log Classes:
Log
Files:Log_composite Log_console Log_daemon Log_display Log_error_log Log_file Log_firebug Log_mail Log_mcal Log_mdb2 Log_null Log_observer Log_sql Log_sqlite Log_syslog Log_win
composite.php
composite.php console.php console.php daemon.php display.php display.php error_log.php error_log.php file.php file.php firebug.php firebug.php Log.php mail.php mail.php mcal.php mdb2.php null.php null.php observer.php observer_mail.php pear_error_handler.php php_error_handler.php sql.php sql.php sqlite.php sqlite.php syslog.php syslog.php win.php win.php |
[ Top ] $_id = 0[line 54] Instance-specific unique identification number.
[ Top ] $_ident = ''[line 62] The label that uniquely identifies this set of log messages.
[ Top ] $_listeners = array()[line 86] Holds all Log_observer objects that wish to be notified of new messages.
[ Top ] $_mask = PEAR_LOG_ALL[line 78] The bitmask of allowed log levels.
[ Top ] $_opened = false[line 46] Indicates whether or not the log can been opened / connected.
[ Top ] $_priority = PEAR_LOG_INFO[line 70] The default priority to use when logging an event.
[ Top ] Method Detailalert [line 281]
A convenience function for logging an alert event. It will log a message at the PEAR_LOG_ALERT log level.
Parameters:
[ Top ]
attach [line 779]
Adds a Log_observer instance to the list of observers that are listening for messages emitted by this Log instance.
Parameters:
[ Top ]
close [line 229]
Abstract implementation of the close() method.
Overridden in child classes as:
[ Top ]
crit [line 298]
A convenience function for logging a critical event. It will log a message at the PEAR_LOG_CRIT log level.
Parameters:
[ Top ]
debug [line 383]
A convenience function for logging a debug event. It will log a message at the PEAR_LOG_DEBUG log level.
Parameters:
[ Top ]
detach [line 801]
Removes a Log_observer instance from the list of observers.
Parameters:
[ Top ]
emerg [line 264]
A convenience function for logging a emergency event. It will log a message at the PEAR_LOG_EMERG log level.
Parameters:
[ Top ]
err [line 315]
A convenience function for logging a error event. It will log a message at the PEAR_LOG_ERR log level.
Parameters:
[ Top ]
factory [line 139]
Attempts to return a concrete Log instance of type $handler.
Parameters:
[ Top ]
flush [line 238]
Abstract implementation of the flush() method.
Overridden in child classes as:
[ Top ]
getIdent [line 864]
Returns the current identification string.
[ Top ]
getMask [line 720]
Returns the current level mask.
[ Top ]
getPriority [line 749]
Returns the current default priority.
[ Top ]
info [line 366]
A convenience function for logging a information event. It will log a message at the PEAR_LOG_INFO log level.
Parameters:
[ Top ]
isComposite [line 838]
Indicates whether this is a composite class.
Overridden in child classes as:
[ Top ]
log [line 247]
Abstract implementation of the log() method.
Overridden in child classes as:
Parameters:
[ Top ]
MASK [line 633]
Calculate the log mask for the given priority. This method may be called statically.
Parameters:
[ Top ]
MAX [line 690]
Calculate the log mask for all priorities less than or equal to the given priority. In other words, $priority will be the highests priority matched by the resulting mask. This method may be called statically.
Parameters:
[ Top ]
MIN [line 671]
Calculate the log mask for all priorities greater than or equal to the given priority. In other words, $priority will be the lowest priority matched by the resulting mask. This method may be called statically.
Parameters:
[ Top ]
notice [line 349]
A convenience function for logging a notice event. It will log a message at the PEAR_LOG_NOTICE log level.
Parameters:
[ Top ]
open [line 220]
Abstract implementation of the open() method.
Overridden in child classes as:
[ Top ]
priorityToString [line 576]
Returns the string representation of a PEAR_LOG_* integer constant.
Parameters:
[ Top ]
setBacktraceDepth [line 524]
Sets the starting depth to use when walking a backtrace in search of the function that invoked the log system. This is used on conjunction with the 'file', 'line', 'function', and 'class' formatters.
Parameters:
[ Top ]
setIdent [line 851]
Sets this Log instance's identification string.
Overridden in child classes as:
Parameters:
[ Top ]
setMask [line 705]
Set and return the level mask for the current Log instance.
Parameters:
[ Top ]
setPriority [line 762]
Sets the default priority to the specified value.
Parameters:
[ Top ]
singleton [line 201]
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. You should use this if there are multiple places you might create a logger, you don't want to create multiple loggers, and you don't want to check for the existance of one each time. The singleton pattern does all the checking work for you. You MUST call this method with the $var = &Log::singleton() syntax. Without the ampersand (&) in front of the method name, you will not get a reference, you will get a copy.
Parameters:
[ Top ]
stringToPriority [line 605]
Returns the the PEAR_LOG_* integer constant for the given string representation of a priority name. This function performs a case-insensitive search.
Parameters:
[ Top ]
UPTO [line 652]
Calculate the log mask for all priorities up to the given priority. This method may be called statically.
Parameters:
[ Top ]
warning [line 332]
A convenience function for logging a warning event. It will log a message at the PEAR_LOG_WARNING log level.
Parameters:
[ Top ]
_announce [line 821]
Informs each registered observer instance that a new message has been logged.
Parameters:
[ Top ]
_extractMessage [line 405]
Returns the string representation of the message data. If $message is an object, _extractMessage() will attempt to extract the message text using a known method (such as a PEAR_Error object's getMessage() method). If a known method, cannot be found, the serialized representation of the object will be returned. If the message data is already a string, it will be returned unchanged.
Parameters:
[ Top ]
_format [line 538]
Produces a formatted log line based on a format string and a set of variables representing the current log record and state.
Parameters:
[ Top ]
_isMasked [line 736]
Check if the given priority is included in the current level mask.
Parameters:
[ Top ]
Documentation generated on Mon, 11 Mar 2019 16:02:23 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004. |