Skip to content

Commit

Permalink
Adding a PEAR_LOG_TYPE_SAPI constant to reflect the new error_log()
Browse files Browse the repository at this point in the history
message_type value that was added in PHP 5.2.7.
  • Loading branch information
jparise committed Jan 24, 2010
1 parent 656377f commit cb994d4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions Log.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
define('PEAR_LOG_TYPE_MAIL', 1); /* Use PHP's mail() function */
define('PEAR_LOG_TYPE_DEBUG', 2); /* Use PHP's debugging connection */
define('PEAR_LOG_TYPE_FILE', 3); /* Append to a file */
define('PEAR_LOG_TYPE_SAPI', 4); /* Use the SAPI logging handler */

/**
* The Log:: class implements both an abstraction for various logging
Expand Down
3 changes: 3 additions & 0 deletions docs/guide.txt
Original file line number Diff line number Diff line change
Expand Up @@ -437,6 +437,9 @@ parameter.
| ``PEAR_LOG_TYPE_FILE`` | Log events will be appended to the file named |
| | by the ``destination`` value. |
+---------------------------+-----------------------------------------------+
| ``PEAR_LOG_TYPE_SAPI`` | Log events will be sent directly to the SAPI |
| | logging handler. |
+---------------------------+-----------------------------------------------+

.. _error_log(): http://www.php.net/error_log
.. _mail(): http://www.php.net/mail
Expand Down

0 comments on commit cb994d4

Please sign in to comment.