Home » Logging » Log
Logging Framework
Download latest release 1.14.6 (there might be newer Composer installable version)
License: MIT License
Description
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.
Maintainers
- Jon Parise (jon) — lead, active
- Chuck Hagenbuch (chagenbu) — lead, active
- Jan Schneider (yunosh) — lead, active
Dependencies
Required
- PHP (>= 7.4.0)
- PEAR Installer (>= 1.4.3)
Optional
Releases
- 1.14.6 (stable, 2025-07-26)
Release notes
License: MIT License
- Fix composite handler boolean return values
- 1.14.5 (stable, 2025-03-09)
- 1.14.4 (stable, 2024-02-20)
- 1.14.3 (stable, 2024-02-07)
- 1.14.2 (stable, 2024-01-21)
- 1.14.1 (stable, 2024-01-10)
- 1.14.0 (stable, 2024-01-09)
- 1.13.3 (stable, 2021-05-04)
- 1.13.2 (stable, 2020-06-01)
- 1.13.1 (stable, 2016-04-15)
- 1.13.0 (stable, 2016-04-02)
- 1.12.9 (stable, 2015-06-14)
- 1.12.8 (stable, 2014-07-12)
- 1.12.7 (stable, 2011-09-19)
- 1.12.6 (stable, 2011-05-26)
- 1.12.5 (stable, 2010-12-23)
- 1.12.4 (stable, 2010-12-06)
- 1.12.3 (stable, 2010-09-28)
- 1.12.2 (stable, 2010-08-29)
- 1.12.1 (stable, 2010-05-28)
- 1.12.0 (stable, 2010-01-24)
- 1.12.0RC1 (beta, 2009-12-27)
- 1.11.6 (stable, 2009-12-26)
- 1.11.5 (stable, 2009-07-24)
- 1.11.4 (stable, 2009-03-30)
- 1.11.3 (stable, 2008-11-19)
- 1.11.2 (stable, 2008-09-05)
- 1.11.1 (stable, 2008-08-06)
- 1.11.0 (stable, 2008-06-14)
- 1.10.1 (stable, 2008-05-03)
- 1.10.0 (stable, 2008-02-10)
- 1.9.16 (stable, 2008-01-19)
- 1.9.15 (stable, 2008-01-19)
- 1.9.14 (stable, 2008-01-01)
- 1.9.13 (stable, 2007-12-13)
- 1.9.12 (stable, 2007-12-12)
- 1.9.11 (stable, 2007-05-14)
- 1.9.10 (stable, 2007-02-05)
- 1.9.9 (stable, 2006-10-12)
- 1.9.8 (stable, 2006-08-01)
- 1.9.7 (stable, 2006-07-07)
- 1.9.6 (stable, 2006-05-27)
- 1.9.5 (stable, 2006-04-30)
- 1.9.4 (stable, 2006-04-25)
- 1.9.3 (stable, 2005-12-05)
- 1.9.2 (stable, 2005-10-25)
- 1.9.1 (stable, 2005-10-24)
- 1.9.0 (stable, 2005-10-09)
- 1.8.7 (stable, 2004-12-21)
- 1.8.6 (stable, 2004-09-08)
- 1.8.5 (stable, 2004-08-10)
- 1.8.4 (stable, 2004-02-17)
- 1.8.3 (stable, 2004-01-08)
- 1.8.2 (stable, 2004-01-01)
- 1.8.1 (stable, 2003-12-14)
- 1.8.0 (stable, 2003-11-19)
- 1.7.1 (stable, 2003-09-21)
- 1.7.0 (stable, 2003-08-03)
- 1.6.7 (stable, 2003-06-17)
- 1.6.6 (stable, 2003-06-05)
- 1.6.5 (stable, 2003-04-27)
- 1.6.4 (stable, 2003-04-08)
- 1.6.3 (stable, 2003-04-08)
- 1.6.2 (stable, 2003-04-07)
- 1.6.1 (stable, 2003-04-03)
- 1.6.0 (stable, 2003-02-17)
- 1.5.3 (stable, 2003-01-02)
- 1.5.2 (stable, 2002-11-28)
- 1.5.1 (stable, 2002-11-17)
- 1.5 (stable, 2002-10-24)
- 1.4 (stable, 2002-09-28)
- 1.3 (stable, 2002-09-15)
- 1.2 (stable, 2002-07-24)
- 1.1 (stable, 2002-04-18)
- 1.0 (2002-03-08)
Bugs
| ID | Status | Type | Version | Date | Summary |
|---|---|---|---|---|---|
| #282 | Closed | Bug | 2003-11-21 | Log_win handler generates broken javascript | |
| #648 | Closed | Bug | 2004-01-31 | Test depends on to new a SQLite | |
| #1121 | No Feedback | Bug | 2004-04-03 | receive Call to a member function on a non-object on test files | |
| #1811 | Closed | Req | 2004-07-06 | The log_id table needs to be configurable for Log_sql | |
| #1947 | Closed | Bug | 2004-07-22 | When using Log_composite, children never get the close() method ! | |
| #2137 | Closed | Req | 2004-08-16 | Identifier string for sql logs is too restrictive | |
| #2212 | Closed | Bug | 2004-08-24 | multiple Log_win badly adresses target window | |
| #2606 | Closed | Req | 2004-10-24 | Please add nl2br() to Log_Display->log() | |
| #2800 | Closed | Req | 2004-11-20 | Improves PEAR_ErrorStack uses | |
| #2853 | Closed | Req | 2004-11-29 | Request for Log::stringToPriority | |
| #3570 | Wont fix | Req | 2005-02-23 | Request addging rolling logger functionality | |
| #3665 | No Feedback | Bug | 2005-03-02 | Examples produce warnings | |
| #3840 | Wont fix | Req | 2005-03-15 | Verbose log level for detailed debug | |
| #3931 | Closed | Bug | 2005-03-23 | PEAR_LOG_DEBUG messages are not handled with syslog handler | |
| #3989 | No Feedback | Bug | 2005-03-29 | _mkdate recursion broken for windows | |
| #4064 | No Feedback | Bug | 2005-04-05 | log_file logs messages in one big heap | |
| #4107 | Closed | Bug | 2005-04-08 | Mail Handler doesn't send carriage return | |
| #4114 | Closed | Bug | 2005-04-11 | mkpath ignores filemode for createing directories | |
| #4237 | No Feedback | Bug | 2005-04-27 | Log_console | |
| #4768 | Closed | Bug | 2005-07-08 | PEAR::Log and PHP 4.4.0RC2 warning message | |
| #4771 | Closed | Req | 2005-07-08 | MDB2 support | |
| #4873 | Closed | Bug | 2005-07-20 | Log_mdb2 with $options['db'] causes error | |
| #4948 | Closed | Req | 2005-07-29 | mode-as-string conversion problem | |
| #5014 | Closed | Req | 2005-08-05 | Log_display should allow to overwrite the <br/> at the end of the output | |
| #5137 | Duplicate | Bug | 2005-08-18 | php 5.1.0. b3 produces a notice | |
| #5182 | Closed | Req | 2005-08-23 | Return new instance without including the handler class | |
| #5192 | Closed | Bug | 2005-08-23 | Method getIdent returns nothing for Composite Log | |
| #5261 | Closed | Bug | 2005-09-01 | Bogus notice in pa : Only variable references should be returned by reference | |
| #5263 | Bogus | Bug | 2005-09-01 | Missing php close tag ("?>") in Log.php | |
| #5273 | Closed | Bug | 2005-09-01 | E_WARNING generated when opening log file | |
| #5418 | Closed | Req | 2005-09-15 | Log_file: chmod and posix | |
| #5603 | Closed | Req | 2005-10-04 | php 4.4 and later version support | |
| #5658 | Closed | Bug | 2005-10-11 | LOG 0.9.0 breaks __autoload | |
| #5702 | Closed | Bug | 2005-10-16 | sql bug when using an existing connection | |
| #5703 | Closed | Req | 2005-10-16 | sql: allow arbitrary sql usage | |
| #5771 | Duplicate | Bug | 2005-10-24 | Log_sql objects passed a DB handle fail when log() is called | |
| #5776 | Closed | Bug | 2005-10-25 | PHP 4.4 compat patch for observer.php | |
| #5777 | Closed | Bug | 2005-10-25 | Log 1.9.1 Call to undefined method Log_sql::_sql() | |
| #6059 | Closed | Req | 2005-11-24 | Please relicence, PHP licence not really fit | |
| #6185 | Closed | Bug | 2005-12-07 | factory fails with autoload | |
| #6214 | Closed | Req | 2005-12-09 | The SQL handler shouldn't depend on DB.php | |
| #6323 | Closed | Bug | 2005-12-22 | MDB2 related fixes | |
| #6689 | Closed | Bug | 1.9.3 | 2006-02-03 | Log::factory not return by reference |
| #6831 | Closed | Bug | 1.9.3 | 2006-02-18 | Observer factory method include path is not correct |
| #7205 | Wont fix | Bug | 1.9.3 | 2006-03-26 | log time should not be affected by localization |
| #7523 | Closed | Bug | CVS | 2006-04-29 | Sqlite required to install Log |
| #7602 | Closed | Bug | 1.9.5 | 2006-05-11 | Error on _getBacktraceVars for composite log |
| #7629 | Closed | Bug | 1.9.5 | 2006-05-15 | strftime(%T) does not work under MS Windows 2000 |
| #8583 | Closed | Bug | 1.9.8 | 2006-08-29 | Log_Win sometimes doesn't show message due to headers not being present |
| #8766 | Closed | Bug | 1.9.8 | 2006-09-22 | Log hangs |
| #8865 | Closed | Bug | 1.9.9 | 2006-10-05 | Using Log_mail with Log_composite results in empty emails |
| #9011 | Bogus | Bug | 1.9.9 | 2006-10-12 | register_shutdown_function() of Log child is called several times |
| #9023 | Closed | Bug | 1.9.9 | 2006-10-14 | Regression tests extract2 fail with PHP 5.2.0 |
| #9032 | Closed | Req | CVS | 2006-10-14 | Optionally limit the number of lines in a log file |
| #9262 | Closed | Req | 1.9.9 | 2006-11-07 | Request for multiple recipitents and /or cc emails for mail log |
| #9379 | Suspended | Req | 1.9.9 | 2006-11-19 | Need a setEncoding method? |
| #9388 | Closed | Bug | 1.9.9 | 2006-11-19 | File Log doesn't check file point |
| #9524 | Wont fix | Bug | 1.9.9 | 2006-12-01 | php syslog has a limit of 500 characters which can cause truncation |
| #9822 | Closed | Bug | 1.9.9 | 2007-01-13 | using syslog "steals" the apache error logging if it uses syslog |
| #9880 | Bogus | Req | 1.9.9 | 2007-01-19 | Add MDB2 |
| #9908 | Bogus | Bug | 1.9.9 | 2007-01-22 | include class, classexist |
| #9930 | Bogus | Req | 1.9.9 | 2007-01-23 | Being able to use existing MDB2-instance |
| #10666 | Closed | Req | 1.9.10 | 2007-04-09 | Convert Log_sql.php to MDB2 |
| #11046 | No Feedback | Bug | 1.9.11 | 2007-05-15 | MDB2_Driver_pgsql::sleep() using MDB2 to Log |
| #11189 | No Feedback | Bug | 1.9.11 | 2007-05-31 | error with win logger |
| #11758 | Closed | Doc | 2007-08-04 | User note that is a documentation problem | |
| #11793 | Duplicate | Doc | CVS | 2007-08-08 | external link broken |
| #12127 | Spam | Req | 1.9.11 | 2007-09-27 | Problem with class_exists() |
| #12607 | Closed | Req | 1.9.11 | 2007-12-04 | avoid errors in IE if logging to firebug console |
| #12654 | Closed | Bug | 1.9.11 | 2007-12-11 | The Window handler is not working properly. |
| #12674 | Closed | Doc | 1.9.12 | 2007-12-12 | firebug.phpt test failed.. |
| #12675 | Closed | Bug | 1.9.12 | 2007-12-12 | Cannot instantiate a handler |
| #12734 | Closed | Bug | 1.9.13 | 2007-12-20 | Issue is SQL Logger - does not correctly accept new log statement |
| #12781 | Closed | Req | 1.9.13 | 2007-12-27 | New log handler / modify existing log handler |
| #12810 | Closed | Bug | 2008-01-02 | Firebug log driver causes script error in IE | |
| #12839 | Closed | Req | 1.9.14 | 2008-01-06 | Let the 'mail' handler use the Mail package |
| #12847 | Closed | Bug | 1.9.14 | 2008-01-07 | is_a deprecated warning messages |
| #12933 | Closed | Bug | 1.9.16 | 2008-01-20 | levels test failed on x86_64 |
| #13093 | Bogus | Bug | 1.9.16 | 2008-02-09 | Returning a reference is now depricated |
| #13168 | Closed | Bug | 1.10.0 | 2008-02-21 | Error in sql.php |
| #13436 | Closed | Bug | 1.10.0 | 2008-03-19 | display handler line break property default empty string |
| #14071 | Closed | Req | 1.10.1 | 2008-06-04 | Update to PHP5 Strict compatible |
| #14154 | Bogus | Bug | 1.11.0 | 2008-06-16 | Series of notices when running Log in sql mode |
| #14398 | Closed | Req | 1.11.0 | 2008-07-23 | _getBacktraceVars creates notices |
| #14430 | Closed | Req | 1.11.0 | 2008-07-31 | _extractMessage produces incomplete output when given NULL or a bool |
| #14595 | Closed | Bug | 1.11.1 | 2008-09-04 | PHP Notice from Log::_getBacktraceVars() method |
| #14624 | Wont fix | Req | 1.11.2 | 2008-09-09 | store messages for later use |
| #15063 | Closed | Req | 1.11.2 | 2008-11-17 | _getBacktraceVars lacks 'class' |
| #15092 | No Feedback | Bug | 1.11.3 | 2008-11-19 | Some DBs need uppercase column names |
| #15379 | Closed | Bug | 1.11.3 | 2008-12-22 | win log not working with output_buffering=on |
| #15883 | No Feedback | Req | 2009-02-08 | Add in FirePHP output support | |
| #16124 | Wont fix | Req | 1.11.4 | 2009-04-19 | Add EOL option support for error_log |
| #16126 | No Feedback | Req | 1.11.4 | 2009-04-19 | Add FirePHP handler in future PEAR::Log distribution |
| #16282 | Wont fix | Bug | 1.11.4 | 2009-06-03 | members not marked as 'static' |
| #16398 | Wont fix | Req | 1.11.4 | 2009-07-02 | Log Rotate is a must to have feature for critical applications |
| #16399 | Duplicate | Req | 1.11.4 | 2009-07-02 | Log Rotate is a must to have feature for critical applications |
| #16452 | Closed | Bug | 1.11.4 | 2009-07-18 | Shortcut log methods log class name incorrectly |
| #16532 | Bogus | Bug | 1.11.5 | 2009-08-17 | 1.11.5 is not 1.11.5 |
| #16568 | Bogus | Req | 1.11.5 | 2009-09-04 | Assigning the return value of new by reference is deprecated |
| #16743 | Closed | Bug | 1.11.5 | 2009-10-26 | Warning in 5.3.0: Assigning the return value of new by reference is deprecated |
| #16862 | Bogus | Bug | 2009-12-02 | strftime() error sending mail | |
| #16988 | Suspended | Req | 1.11.6 | 2010-01-11 | Can't really use _isMasked with composite logger |
| #17027 | Bogus | Bug | 1.11.6 | 2010-01-22 | error_log() expects parameter 2 to be long, string given |
| #17356 | Closed | Bug | 1.12.0 | 2010-04-29 | Composite bug |
| #17509 | Closed | Bug | 1.12.1 | 2010-06-21 | static use of non-static methods |
| #17635 | Duplicate | Bug | 1.12.1 | 2010-07-27 | PHP strict warnings for static methods Log::factory() and Log::singleton() |
| #17738 | Closed | Bug | 1.12.1 | 2010-08-18 | Undefined index: class |
| #17753 | Closed | Req | 1.12.1 | 2010-08-19 | Suport lineFormat for syslog writer |
| #17785 | Closed | Bug | 1.12.1 | 2010-08-22 | Composite Logger Opens all sub-loggers |
| #17830 | Closed | Req | 1.12.2 | 2010-08-29 | tests fails because of date.timezone warnings |
| #17874 | Closed | Bug | 1.12.2 | 2010-09-20 | logging to console with standard options gives PHP NOTICE |
| #18099 | Closed | Bug | 1.12.4 | 2010-12-06 | levels.phpt fails on 32bits computer |
| #18141 | Closed | Bug | 1.12.4 | 2010-12-23 | Firebug breaking with quotes in message (fix included) |
| #18185 | Closed | Req | 1.12.5 | 2011-01-12 | call openlog() in each log() |
| #18423 | Closed | Req | 1.12.5 | 2011-04-04 | configurable starting backtrace $depth |
| #18617 | Closed | Req | 1.12.6 | 2011-06-20 | Log to Chrome consol - feature request |
| #18795 | Closed | Bug | 1.12.6 | 2011-09-06 | Unable to install package due to issue with Log |
| #18830 | Closed | Bug | 1.12.6 | 2011-09-13 | Assigning the return value of new by reference is deprecated |
| #18860 | Closed | Doc | Unknown | 2011-09-22 | composite and singleton |
| #18861 | Duplicate | Bug | Unknown | 2011-09-22 | composite and singleton |
| #18864 | Closed | Bug | 1.12.7 | 2011-09-22 | Test fails with PHP 5.1.6 |