cvs: pear /Log/docs guide.txt
| From: | Mika Tuupola | Date: | Thu, 08 Feb 2007 09:05:08 +0000 |
| Subject: | cvs: pear /Log/docs guide.txt | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-44579@lists.php.net to get a copy of this message | ||
tuupola Thu Feb 8 09:05:08 2007 UTC
Modified files:
/pear/Log/docs guide.txt
Log:
Add documentation for Firebug handler.
http://cvs.php.net/viewvc.cgi/pear/Log/docs/guide.txt?r1=1.30&r2=1.31&diff_format=u
Index: pear/Log/docs/guide.txt
diff -u pear/Log/docs/guide.txt:1.30 pear/Log/docs/guide.txt:1.31
--- pear/Log/docs/guide.txt:1.30 Mon Jan 29 05:04:41 2007
+++ pear/Log/docs/guide.txt Thu Feb 8 09:05:08 2007
@@ -8,8 +8,8 @@
:Author: Jon Parise
:Contact: jon@php.net
-:Date: $Date: 2007/01/29 05:04:41 $
-:Revision: $Revision: 1.30 $
+:Date: $Date: 2007/02/08 09:05:08 $
+:Revision: $Revision: 1.31 $
.. contents:: Contents
.. section-numbering::
@@ -469,6 +469,39 @@
}
+The Firebug Handler
+-------------------
+The Firebug handler outputs log events to Firebug_ console. It supports
+output buffering and configurable string formats.
+
+Configuration
+~~~~~~~~~~~~~
++-------------------+-----------+---------------+---------------------------+
+| Parameter | Type | Default | Description |
++===================+===========+===============+===========================+
+| `
buffering` | Boolean | False | Should the output be |
+| | | | buffered until shutdown? |
++-------------------+-----------+---------------+---------------------------+
+| `lineFormat | String | `%2$s [%3$s] | Log line format |
+| | | %4$s`` | specification. |
++-------------------+-----------+---------------+---------------------------+
+| `timeFormat | String | `%b %d | Time stamp format |
+| | | %H:%M:%S`` | (for strftime_). |
++-------------------+-----------+---------------+---------------------------+
+
+.. _Firebug: http://www.getfirebug.com/
+.. _strftime: http://www.php.net/strftime
+
+Example
+~~~~~~~
+::
+
+ $logger = &Log::singleton('firebug', '', 'ident');
+ for ($i = 0; $i < 10; $i++) {
+ $logger->log("Log entry $i");
+ }
+
+
The Mail Handler
----------------
The Mail handler aggregates a session's log events and sends them in the body