Age | Commit message (Collapse) | Author | Files | Lines |
|
* Added a new 'null' log handler.
* Added a flush() method to the public Log API.
* Added a new handler that logs using the Sqlite extension.
* The open(), close() and log() methods now consistently return success
or failure.
* If an object or array is passed as a log event, its human-readable
representation will be used.
* It's now possible to specify the default priority for events logged
using the log() method.
|
|
|
|
|
|
|
|
|
|
1.8.1:
* Fixed some bugs in the 'win' handler.
* Updated the Log_observer::factory() method for consistency
with Log::factory().
1.8.0:
* The Log package now includes a users guide, example scripts and unit tests.
* A number of small improvements have been made to the 'win' log handler
(based on suggestions from Paul Yanchenko).
* A new 'display' log handler has been added to the distribution. Contributed
by Paul Yanchenko, this handler simply prints the error message back
to the browser. It respects the 'error_prepend_string' and
'error_append_string' PHP INI values and is useful when using
PEAR::setErrorHandling()'s PEAR_ERROR_CALLBACK mechanism.
1.7.1:
* The mail handler now uses "\n" to terminate lines instead of "\r\n".
* The file handler's path creation routines now guard against potentially
infinite recursion.
* It is now possible to pass an object to the logging methods. If the object
offers a PEAR_Error-style getMessage() or PHP5 exception-style toString()
method, it will be used to extract the message text.
Documentation and the guide are installed in ${LOCALBASE}/share/doc/pear-Log.
|
|
The Log framework provides an abstracted logging system for PHP. It supports
logging to console, file, syslog, SQL, mail, and mcal targets. It also
provides a subject - observer mechanism.
|