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 53] Instance-specific unique identification number.
[ Top ] $_ident = ''[line 61] The label that uniquely identifies this set of log messages.
[ Top ] $_listeners = array()[line 85] Holds all Log_observer objects that wish to be notified of new messages.
[ Top ] $_mask = PEAR_LOG_ALL[line 77] The bitmask of allowed log levels.
[ Top ] $_opened = false[line 45] Indicates whether or not the log can been opened / connected.
[ Top ] $_priority = PEAR_LOG_INFO[line 69] The default priority to use when logging an event.
[ Top ] Method Detailalert [line 271]
A convenience function for logging an alert event. It will log a message at the PEAR_LOG_ALERT log level.
Parameters:
[ Top ]
attach [line 737]
Adds a Log_observer instance to the list of observers that are listening for messages emitted by this Log instance.
Parameters:
[ Top ]
close [line 219]
Abstract implementation of the close() method.
Overridden in child classes as:
[ Top ]
crit [line 288]
A convenience function for logging a critical event. It will log a message at the PEAR_LOG_CRIT log level.
Parameters:
[ Top ]
debug [line 373]
A convenience function for logging a debug event. It will log a message at the PEAR_LOG_DEBUG log level.
Parameters:
[ Top ]
detach [line 759]
Removes a Log_observer instance from the list of observers.
Parameters:
[ Top ]
emerg [line 254]
A convenience function for logging a emergency event. It will log a message at the PEAR_LOG_EMERG log level.
Parameters:
[ Top ]
err [line 305]
A convenience function for logging a error event. It will log a message at the PEAR_LOG_ERR log level.
Parameters:
[ Top ]
factory [line 129]
Attempts to return a concrete Log instance of type $handler.
Parameters:
[ Top ]
flush [line 228]
Abstract implementation of the flush() method.
Overridden in child classes as:
[ Top ]
getIdent [line 822]
Returns the current identification string.
[ Top ]
getMask [line 678]
Returns the current level mask.
[ Top ]
getPriority [line 707]
Returns the current default priority.
[ Top ]
info [line 356]
A convenience function for logging a information event. It will log a message at the PEAR_LOG_INFO log level.
Parameters:
[ Top ]
isComposite [line 796]
Indicates whether this is a composite class.
Overridden in child classes as:
[ Top ]
log [line 237]
Abstract implementation of the log() method.
Overridden in child classes as:
Parameters:
[ Top ]
MASK [line 591]
Calculate the log mask for the given priority. This method may be called statically.
Parameters:
[ Top ]
MAX [line 648]
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 629]
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 339]
A convenience function for logging a notice event. It will log a message at the PEAR_LOG_NOTICE log level.
Parameters:
[ Top ]
open [line 210]
Abstract implementation of the open() method.
Overridden in child classes as:
[ Top ]
priorityToString [line 534]
Returns the string representation of a PEAR_LOG_* integer constant.
Parameters:
[ Top ]
setIdent [line 809]
Sets this Log instance's identification string.
Overridden in child classes as:
Parameters:
[ Top ]
setMask [line 663]
Set and return the level mask for the current Log instance.
Parameters:
[ Top ]
setPriority [line 720]
Sets the default priority to the specified value.
Parameters:
[ Top ]
singleton [line 191]
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 563]
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 610]
Calculate the log mask for all priorities up to the given priority. This method may be called statically.
Parameters:
[ Top ]
warning [line 322]
A convenience function for logging a warning event. It will log a message at the PEAR_LOG_WARNING log level.
Parameters:
[ Top ]
_announce [line 779]
Informs each registered observer instance that a new message has been logged.
Parameters:
[ Top ]
_extractMessage [line 395]
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 499]
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 694]
Check if the given priority is included in the current level mask.
Parameters:
[ Top ]
Documentation generated on Mon, 11 Mar 2019 15:12:25 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004. |