Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

153 lines (152 sloc) 6.445 kB
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE package SYSTEM "">
<package version="1.0" packagerversion="1.4.10">
<summary>Logging utilities</summary>
<description>The Log framework provides an abstracted logging system. It supports logging to console, file, syslog, SQL, Sqlite, mail, and mcal targets. It also provides a subject - observer mechanism.
<name>Jon Parise</name>
<license>PHP License</license>
<notes>The window handler now allows the entire CSS style to be set instead of just the text color.
<dep type="php" rel="ge" version="4.3.0" optional="no"/>
<dep type="pkg" rel="ge" version="1.3" optional="yes">DB</dep>
<dep type="pkg" rel="ge" version="2.0.0RC1" optional="yes">MDB2</dep>
<dep type="ext" rel="has" optional="yes">sqlite</dep>
<dir name="/" baseinstalldir="/">
<dir name="docs">
<dir name="examples">
<file role="doc" name="composite.php"/>
<file role="doc" name="console.php"/>
<file role="doc" name="display.php"/>
<file role="doc" name="error_log.php"/>
<file role="doc" name="file.php"/>
<file role="doc" name="mail.php"/>
<file role="doc" name="null.php"/>
<file role="doc" name="observer_mail.php"/>
<file role="doc" name="pear_error_handler.php"/>
<file role="doc" name="php_error_handler.php"/>
<file role="doc" name="sql.php"/>
<file role="doc" name="sqlite.php"/>
<file role="doc" name="syslog.php"/>
<file role="doc" name="win.php"/>
</dir> <!-- /docs/examples -->
<file role="doc" name="guide.txt"/>
</dir> <!-- /docs -->
<dir name="Log">
<file role="php" name="composite.php"/>
<file role="php" name="console.php"/>
<file role="php" name="daemon.php"/>
<file role="php" name="display.php"/>
<file role="php" name="error_log.php"/>
<file role="php" name="file.php"/>
<file role="php" name="mail.php"/>
<file role="php" name="mcal.php"/>
<file role="php" name="mdb2.php"/>
<file role="php" name="null.php"/>
<file role="php" name="observer.php"/>
<file role="php" name="sql.php"/>
<file role="php" name="sqlite.php"/>
<file role="php" name="syslog.php"/>
<file role="php" name="win.php"/>
</dir> <!-- /Log -->
<dir name="misc">
<file role="data" name="log.sql"/>
</dir> <!-- /misc -->
<dir name="tests">
<file role="test" name="composite.phpt"/>
<file role="test" name="console.phpt"/>
<file role="test" name="display.phpt"/>
<file role="test" name="error_log.phpt"/>
<file role="test" name="extract.phpt"/>
<file role="test" name="extract2.phpt"/>
<file role="test" name="factory.phpt"/>
<file role="test" name="file.phpt"/>
<file role="test" name="levels.phpt"/>
<file role="test" name="null.phpt"/>
<file role="test" name="priority.phpt"/>
<file role="test" name="singleton.phpt"/>
<file role="test" name="sqlite.phpt"/>
<file role="test" name="sql_ident.phpt"/>
</dir> <!-- /tests -->
<file role="php" name="Log.php"/>
</dir> <!-- / -->
<license>PHP License</license>
<notes>The window handler now allows the entire CSS style to be set instead of just the text color.
<license>PHP License</license>
<notes>Provided documentation on logging PHP assertions and exceptions.
All stock handlers now provide stubbed open() and close() method.
The composite handler now tracks the success of its child handlers&apos; operations.
The composite handler&apos;s log() method now opens its child handlers if they&apos;re not already open.
<license>PHP License</license>
<notes>_getBacktraceVars() now works with composite handlers. (Bug 7602)
Instances of strftime(&apos;%T&apos;) have been replaced with &apos;%H:%M:%S&apos;. (Bug 7629)
Provided documentation on logging PHP assertions and exceptions.
<license>PHP License</license>
<notes>Correcting the sqlite dependency. It is now optional. (Bug 7523)
<license>PHP License</license>
<notes>If a &apos;DB&apos; class already exists, the SQL handler won&apos;t attempt to require DB.php. (Bug 6214)
When creating the Log instance in factory(), return a proper reference to the object. (Bug 5261)
When preparing the MDB2 statement, mark it as MDB2_PREPARE_MANIP. (Bug 6323)
If the desired Log class already exists (because the caller has supplied it from some custom location), simply instantiate and return a new instance. (Mads Danquah)
The observer&apos;s factory method now provides more robust file location logic. (Bug 6831)
Added MIN() and MAX() functions for calculating the minimum and maximum log masks based on a given priority. MAX() superceeds the existing UPTO() function, which is now deprecated.
Settled on the PHP4-style &quot;return object by reference&quot; notation for good, even though it results in a E_STRICT warning under PHP5. (Bug 6689)
<license>PHP License</license>
<notes>The Observer code is now PHP 4.4 compliant. (Bug 5776)
Log::factory(), Log::singleton(), and Log_observer::factory() now return null instead of false on failure. This is more consistent with the model that these methods return object references. Backwards compatibility is only violated if users were explicitly testing for a literal &apos;false&apos; result.
Jump to Line
Something went wrong with that request. Please try again.