Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

228 lines (211 sloc) 11.059 kB
<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE package SYSTEM "http://pear.php.net/dtd/package-1.0">
<package version="1.0">
<name>Log</name>
<summary>Logging utilities</summary>
<description>The Log framework provides an abstracted logging system. It supports logging to console, file, syslog, SQL, mail, and mcal targets. It also provides a subject - observer mechanism.</description>
<maintainers>
<maintainer>
<user>jon</user>
<name>Jon Parise</name>
<email>jon@php.net</email>
<role>lead</role>
</maintainer>
</maintainers>
<release>
<version>1.8.2</version>
<date>2004-01-01</date>
<license>PHP License</license>
<state>stable</state>
<notes>Added a new 'null' log handler.
Added a flush() method to the public Log API.</notes>
<deps>
<dep type="pkg" rel="has" optional="yes">DB</dep>
</deps>
<filelist>
<file role="doc" baseinstalldir="/" name="docs/guide.txt"/>
<file role="doc" baseinstalldir="/" name="docs/examples/composite.php"/>
<file role="doc" baseinstalldir="/" name="docs/examples/console.php"/>
<file role="doc" baseinstalldir="/" name="docs/examples/display.php"/>
<file role="doc" baseinstalldir="/" name="docs/examples/error_log.php"/>
<file role="doc" baseinstalldir="/" name="docs/examples/file.php"/>
<file role="doc" baseinstalldir="/" name="docs/examples/mail.php"/>
<file role="doc" baseinstalldir="/" name="docs/examples/null.php"/>
<file role="doc" baseinstalldir="/" name="docs/examples/observer_mail.php"/>
<file role="doc" baseinstalldir="/" name="docs/examples/pear_error_handler.php"/>
<file role="doc" baseinstalldir="/" name="docs/examples/php_error_handler.php"/>
<file role="doc" baseinstalldir="/" name="docs/examples/sql.php"/>
<file role="doc" baseinstalldir="/" name="docs/examples/syslog.php"/>
<file role="doc" baseinstalldir="/" name="docs/examples/win.php"/>
<file role="php" baseinstalldir="/" name="Log/composite.php"/>
<file role="php" baseinstalldir="/" name="Log/console.php"/>
<file role="php" baseinstalldir="/" name="Log/display.php"/>
<file role="php" baseinstalldir="/" name="Log/error_log.php"/>
<file role="php" baseinstalldir="/" name="Log/file.php"/>
<file role="php" baseinstalldir="/" name="Log/mail.php"/>
<file role="php" baseinstalldir="/" name="Log/mcal.php"/>
<file role="php" baseinstalldir="/" name="Log/null.php"/>
<file role="php" baseinstalldir="/" name="Log/observer.php"/>
<file role="php" baseinstalldir="/" name="Log/sql.php"/>
<file role="php" baseinstalldir="/" name="Log/syslog.php"/>
<file role="php" baseinstalldir="/" name="Log/win.php"/>
<file role="test" baseinstalldir="/" name="tests/composite.phpt"/>
<file role="test" baseinstalldir="/" name="tests/console.phpt"/>
<file role="test" baseinstalldir="/" name="tests/display.phpt"/>
<file role="test" baseinstalldir="/" name="tests/error_log.phpt"/>
<file role="test" baseinstalldir="/" name="tests/factory.phpt"/>
<file role="test" baseinstalldir="/" name="tests/null.phpt"/>
<file role="test" baseinstalldir="/" name="tests/singleton.phpt"/>
<file role="php" baseinstalldir="/" name="Log.php"/>
</filelist>
</release>
<changelog>
<release>
<version>1.8.2</version>
<date>2004-01-01</date>
<license>PHP License</license>
<state>stable</state>
<notes>A new 'null' log handler that simply consumes log events has been added. The 'null' handler will still respect log masks and attached observers.
The public Log API has grown a flush() method. This allows buffered log output to be explicitly flushed. At this time, the flush() method is only implemented by the console, file and mail handlers.
New unit tests for the Factory and Singleton construction methods have been added.</notes>
</release>
<release>
<version>1.8.1</version>
<date>2003-12-14</date>
<license>PHP License</license>
<state>stable</state>
<notes>The 'win' handler now handles newline sequences correctly (Bug 282).
The Log_observer::factory() method has been updated to accept an optional associative array of configuration values, return the newly-created object by reference, and look for files named 'Log/observer_.php'. Backwards compatibility for the old-style conventions has been preserved.</notes>
</release>
<release>
<version>1.8.0</version>
<date>2003-11-18</date>
<license>PHP License</license>
<state>stable</state>
<notes>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.</notes>
</release>
<release>
<version>1.7.1</version>
<date>2003-09-21</date>
<state>stable</state>
<notes>The mail handler now uses &quot;\n&quot; to terminate lines instead of &quot;\r\n&quot;.
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.</notes>
</release>
<release>
<version>1.7.0</version>
<date>2003-08-02</date>
<state>stable</state>
<notes>It is now possible to specific a specific mask that dictates exactly which levels will be logged.
A number of convenient &quot;shortcut&quot; functions have been added for logging messages at specific log messages.
Two new log handers have been added: the 'error_log' handler wraps PHP's native error_log() function; and the 'win' handler outputs log messages to a separate browser window.
The file log handler has been completely rewritten based on suggestions from Roman Neuhauser. It no longer buffers log output in memory before writing to the log file.
Greg Beaver submitted a change that allows callers to provide their own Log classes (that existing outside of the PEAR file hierarchy) by including them before invoking a factory() method.</notes>
</release>
<release>
<version>1.6.7</version>
<date>2003-06-16</date>
<state>stable</state>
<notes>It is now possible to set the identification string for all of a composite's child instances.
The preamble of the mail handler's message is now configurable.</notes>
</release>
<release>
<version>1.6.5</version>
<date>2003-04-26</date>
<state>stable</state>
<notes>The mail log handler needs to register its own destructer now that the Log class no longer inherits from the PEAR base class.</notes>
</release>
<release>
<version>1.6.4</version>
<date>2003-04-08</date>
<state>stable</state>
<notes>The Log classes no longer inherits from the PEAR base class. Not including the PEAR base class gives us smaller, faster Log objects.
The Log_file class now registers its own destructor to ensure that the logfile is correctly closed upon shutdown.
A ZendEngine 1 incompatibility was introduced in the previous release. This has been corrrected.</notes>
</release>
<release>
<version>1.6.3</version>
<date>2003-04-07</date>
<state>stable</state>
<notes>A unique identifier is now stored inside each Log instance. Both the composite and subject-observer mechanisms use this identifier to index their object lists.
The internals of the Log_observer system have been rewritten for general cleanliness. The external interface remains unchanged.
The Log class now offers public setIdent() and getIdent() members for setting and getting the Log instance's identification string during the object's lifetime.</notes>
</release>
<release>
<version>1.6.2</version>
<date>2003-04-06</date>
<state>stable</state>
<notes>In the Log_observer class, operate directly on the reference to the Log instance (instead of on a copy of the object).</notes>
</release>
<release>
<version>1.6.1</version>
<date>2003-04-02</date>
<state>stable</state>
<notes>- Fix a typo that broke the Log_Observer class.</notes>
</release>
<release>
<version>1.6.0</version>
<date>2003-02-17</date>
<state>stable</state>
<notes>- The SQL handler now uses sequences instead of timestamps as unique identifiers.
- The time format used by the file handler is now configurable.</notes>
</release>
<release>
<version>1.5.3</version>
<date>2003-01-01</date>
<state>stable</state>
<notes>- Improved singleton()'s signature generation.
- The SQL handler no longer closes existing database connections.
- The log() method now returns a boolean result indicating success or failure.</notes>
</release>
<release>
<version>1.5.2</version>
<date>2002-11-28</date>
<state>stable</state>
<notes>- Altered the singleton's &quot;signature&quot; construction to be shorter and more array-friendly.</notes>
</release>
<release>
<version>1.5.1</version>
<date>2002-11-17</date>
<state>stable</state>
<notes>- The mail handler now implements a destructor to ensure close() is called.
- The syslog handler now requires $name to be a valid syslog facility.</notes>
</release>
<release>
<version>1.5</version>
<date>2002-10-24</date>
<state>stable</state>
<notes>- Adding the ability to set the mode of the logfile in the Log_file.
- mail() failures in Log_mail are logged via error_log().
- Replaced all remaining LOG_* constants with the PEAR_LOG_* versions.</notes>
</release>
<release>
<version>1.4</version>
<date>2002-09-28</date>
<state>stable</state>
<notes>- Altered the format of the SQL logging table to use a TIMESTAMP field.
- The Log class now extends the PEAR base class.
- New file logger that keeps the log file open for the life of the request.</notes>
</release>
<release>
<version>1.3</version>
<date>2002-09-15</date>
<state>stable</state>
<notes>Adding a mail logging target.</notes>
</release>
<release>
<version>1.2</version>
<date>2002-07-24</date>
<state>stable</state>
<notes>Introduce the PEAR_LOG_* constants.</notes>
</release>
<release>
<version>1.1</version>
<date>2002-04-12</date>
<state>stable</state>
<notes>Adding a new console logging target.</notes>
</release>
</changelog>
</package>
Jump to Line
Something went wrong with that request. Please try again.