Log
pear.php.net
Logging Framework
The Log package provides an abstracted logging framework. It includes output handlers for log files, databases, syslog, email, Firebug, and the console. It also provides composite and subject-observer logging mechanisms.
Jon Parise
jon
jon@php.net yes
Chuck Hagenbuch
chagenbu
chuck@horde.org yes
Jan Schneider
yunosh
jan@horde.org yes
2011-09-19
00:51:23
1.12.7
1.0.0
stable
stable
MIT License
- The 'firebug' handler is now usable with Chrome, as well. (Request 18617) - The 'observer' code now longer generates deprecated return value reference notices. (Bug 18830)
5.0.0
1.4.3
DB
pear.php.net
1.3
MDB2
pear.php.net
2.0.0RC1
Mail
pear.php.net
sqlite
1.12.7
1.0.0
stable
stable
2011-09-18
MIT License
- The 'firebug' handler is now usable with Chrome, as well. (Request 18617) - The 'observer' code now longer generates deprecated return value reference notices. (Bug 18830)
1.12.6
1.0.0
stable
stable
2011-05-25
MIT License
- Improved the console handler's stream handling. (Bug 17874) - Added a 'reopen' configuration parameter to the syslog handler. (Request 18185) - The backtrace depth is now configurable via setBacktraceDepth(). (Request 18423)
1.12.5
1.0.0
stable
stable
2010-12-22
MIT License
- Corrected the "levels" unit test on 32-bit systems. (Bug 18099) - Corrected quote handling in Firebug console output. (Bug 18141)
1.12.4
1.0.0
stable
stable
2010-12-05
MIT License
- The display handler now has a 'rawText' configuration option that disables HTML-safe message text conversion. - Improved the way that the composite handler stores references its children.
1.12.3
1.0.0
stable
stable
2010-09-27
MIT License
- The unit tests now set the timezone. (Bug 17830) - The composite handler now opens child handlers lazily (on demand). (Bug 17785)
1.12.2
1.0.0
stable
stable
2010-08-28
MIT License
- Use PHP5-specific static method notation to avoid strict warnings. (Bug: 17509) - Fixing some potential undefined backtrace references. (Bug: 17738) - Adding `lineFormat` and `timeFormat` configuration variables to the syslog handler. (Request: 17753)
1.12.1
1.0.0
stable
stable
2010-05-28
MIT License
Fixing a rare notice when extracting the class name from a backtrace involving the composite handler. (Bug 17356)
1.12.0
1.0.0
stable
stable
2010-01-24
MIT License
This release drops PHP4 compatibility (enforced by the package dependencies).

There is unfortunately no way to support both PHP4 and PHP5 in the same code base when running under E_ALL. Because it appears that the majority of Log package users have moved to PHP5, the Log package now targets that audience.

Given the fact that the Log package is now largely in maintenance mode, existing PHP4 users shouldn't feel adandoned. If necessary, important fixes, etc. can be merged back into the 1.11.* release line, which will retain PHP4 compatibility.

Also: - Added a PEAR_LOG_TYPE_SAPI constant for use by with error_log handler.
1.12.0RC1
1.0.0
beta
stable
2009-12-27
MIT License
This release drops PHP4 compatibility (enforced by the package dependencies).

There is unfortunately no way to support both PHP4 and PHP5 in the same code base when running under E_ALL. Because it appears that the majority of Log package users have moved to PHP5, the Log package now targets that audience.

Given the fact that the Log package is now largely in maintenance mode, existing PHP4 users shouldn't feel adandoned. If necessary, important fixes, etc. can be merged back into the 1.11.* release line, which will retain PHP4 compatibility.
1.11.6
1.0.0
stable
stable
2009-12-26
MIT License
The syslog handler's maximum message length is now configurable via a new 'maxLength' configuration variable. If the handler receives a message longer than this length limit, it will be split into multiple syslog() calls.
1.11.5
1.0.0
stable
stable
2009-07-23
MIT License
- The class name is now reported correctly when the shortcut functions are used. (Bug #16452)
1.11.4
1.0.0
stable
stable
2009-03-29
MIT License
- The window handler now works when output buffering is enabled. (Bug 15379) - The window handler will now scroll to the bottom when clicked. (Kevin Wood)
1.11.3
1.0.0
stable
stable
2008-11-18
MIT License
- It is now possible to configure the error_log handler's line and timestamp formats. (Bug #14655) - Added _extractMessage() support for non-scalar array('message' => ...) values. - Spaces in 'win' handler window names are now replaced with underscores. - Added a class name format token: %8$s
1.11.2
1.0.0
stable
stable
2008-09-04
MIT License
- Correcting some breakage in Log::_getBacktraceVars(). (Bug 14595)
1.11.1
1.0.0
stable
stable
2008-08-05
MIT License
- Log::_getBacktraceVars() no longer produces notices. (Bug 14398) - Log::_extractMessage() now uses var_export() instead of print_r(). (Bug 14430)
1.11.0
1.0.0
stable
stable
2008-06-14
MIT License
Relicensing the Log package under the MIT license.
1.10.1
1.0.0
stable
stable
2008-05-03
PHP License
- The default value for the display handler's lineBreak configuration value wasn't being applied. (Bug 13436)
1.10.0
1.0.0
stable
stable
2008-02-10
PHP License
- The level masking test now passed on 64-bit platforms. (Bug 12933) - The mail handler can now optionally use the PEAR Mail package. (Request 12839)
1.9.16
1.0.0
stable
stable
2008-01-19
PHP License
- Corrected some PHPDoc syntax problems. - Correcting some spelling errors in the users guide. - Fixed the firebug unit test. - Simplified the PEAR_LOG_ALL and PEAR_LOG_NONE constants.
1.9.15
1.0.0
stable
stable
2008-01-19
PHP License
- The Firebug handler now avoids more Javascript errors in IE. (Bug 12810)
1.9.14
1.0.0
stable
stable
2008-01-01
PHP License
- The sql handler wasn't honoring custom SQL insertion statements. (Bug 12734) - The display handler now has a configurable line format. (Request 12781)
1.9.13
1.0.0
stable
stable
2007-12-12
PHP License
- The Firebug handler's unit test now passes. (Bug 12674) - Fixed a PHP4 compatibility problem involving class_exists(). (Bug 12675)
1.9.12
1.0.0
stable
stable
2007-12-11
PHP License
- The Firebug handler no longer generates Javascript errors in IE. (Bug 12607) - The users guide has been updated with information on writing custom handlers.
1.9.11
1.0.0
stable
stable
2007-05-13
PHP License
A Firebug log handler has been added.
1.9.10
1.0.0
stable
stable
2007-02-04
PHP License
The syslog handler now has an 'inherit' configuration parameter which controls whether or openlog() is called to create a new syslog environment. (Bug 9822) fflush() is now always called with a valid resource. (Bug 9388) The mail handler, when composited, no longer sends empty messages. (Bug 8865)