The Log:: class implements both an abstraction for various logging mechanisms and the Subject end of a Subject-Observer pattern.
Located in /maintenance/libraries/pear/Log.php (line 37)
Class | Description |
---|---|
![]() |
The Log_error_log class is a concrete implementation of the Log abstract class that logs messages using PHP's error_log() function. |
![]() |
The Log_null class is a concrete implementation of the Log:: abstract class. It simply consumes log events. |
![]() |
The Log_mcal class is a concrete implementation of the Log:: abstract class which sends messages to a local or remote calendar store accessed through MCAL. |
![]() |
The Log_win class is a concrete implementation of the Log abstract class that logs messages to a separate browser window. |
![]() |
The Log_file class is a concrete implementation of the Log abstract class that logs messages to a text file. |
![]() |
The Log_sql class is a concrete implementation of the Log:: abstract class which sends messages to an SQL server. Each entry occupies a separate row in the database. |
![]() |
The Log_syslog class is a concrete implementation of the Log:: abstract class which sends messages to syslog on UNIX-like machines (PHP emulates this with the Event Log on Windows machines). |
![]() |
The Log_sqlite class is a concrete implementation of the Log:: abstract class which sends messages to an Sqlite database. |
![]() |
The Log_mail class is a concrete implementation of the Log:: abstract class which sends log messages to a mailbox. |
![]() |
The Log_composite:: class implements a Composite pattern which allows multiple Log implementations to receive the same events. |
![]() |
The Log_console class is a concrete implementation of the Log:: abstract class which writes message to the text console. |
![]() |
The Log_display class is a concrete implementation of the Log:: abstract class which writes message into browser in usual PHP maner. |
Instance-specific unique identification number.
The label that uniquely identifies this set of log messages.
Holds all Log_observer objects that wish to be notified of new messages.
The bitmask of allowed log levels.
Indicates whether or not the log can been opened / connected.
The default priority to use when logging an event.
A convenience function for logging an alert event. It will log a message at the PEAR_LOG_ALERT log level.
Adds a Log_observer instance to the list of observers that are listening for messages emitted by this Log instance.
Abstract implementation of the close() method.
A convenience function for logging a critical event. It will log a message at the PEAR_LOG_CRIT log level.
A convenience function for logging a debug event. It will log a message at the PEAR_LOG_DEBUG log level.
Removes a Log_observer instance from the list of observers.
A convenience function for logging a emergency event. It will log a message at the PEAR_LOG_EMERG log level.
A convenience function for logging a error event. It will log a message at the PEAR_LOG_ERR log level.
Attempts to return a concrete Log instance of type $handler.
Abstract implementation of the flush() method.
Returns the current identification string.
Returns the current level mask.
Returns the current default priority.
A convenience function for logging a information event. It will log a message at the PEAR_LOG_INFO log level.
Indicates whether this is a composite class.
Abstract implementation of the log() method.
Calculate the log mask for the given priority.
A convenience function for logging a notice event. It will log a message at the PEAR_LOG_NOTICE log level.
Abstract implementation of the open() method.
Returns the string representation of a PEAR_LOG_* integer constant.
Sets this Log instance's identification string.
Set and return the level mask for the current Log instance.
Sets the default priority to the specified value.
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.
Calculate the log mask for all priorities up to the given priority.
A convenience function for logging a warning event. It will log a message at the PEAR_LOG_WARNING log level.
Informs each registered observer instance that a new message has been logged.
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.
Check if the given priority is included in the current level mask.
Documentation generated on Thu, 20 Jan 2005 17:10:13 +0000 by phpDocumentor 1.3.0RC3