You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@logging.apache.org by ih...@apache.org on 2013/01/01 16:52:38 UTC

git commit: LOG4PHP-203; added capped collection support for mongo appender to docs.

Updated Branches:
  refs/heads/develop d9b26e334 -> 63e20f67a


LOG4PHP-203; added capped collection support for mongo appender to docs.

Signed-off-by: Vladimir Gorej <go...@codescale.net>
Signed-off-by: Ivan Habunek <ih...@apache.org>


Project: http://git-wip-us.apache.org/repos/asf/logging-log4php/repo
Commit: http://git-wip-us.apache.org/repos/asf/logging-log4php/commit/63e20f67
Tree: http://git-wip-us.apache.org/repos/asf/logging-log4php/tree/63e20f67
Diff: http://git-wip-us.apache.org/repos/asf/logging-log4php/diff/63e20f67

Branch: refs/heads/develop
Commit: 63e20f67a4a56f97147d9171ddf2c0c00ddaf04a
Parents: d9b26e3
Author: Vladimir Gorej <go...@codescale.net>
Authored: Tue Jan 1 16:37:07 2013 +0100
Committer: Ivan Habunek <ih...@apache.org>
Committed: Tue Jan 1 16:48:07 2013 +0100

----------------------------------------------------------------------
 src/main/php/appenders/LoggerAppenderMongoDB.php |    2 +-
 src/site/xdoc/docs/appenders/mongodb.xml         |   27 ++++++++++++++++-
 2 files changed, 27 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/logging-log4php/blob/63e20f67/src/main/php/appenders/LoggerAppenderMongoDB.php
----------------------------------------------------------------------
diff --git a/src/main/php/appenders/LoggerAppenderMongoDB.php b/src/main/php/appenders/LoggerAppenderMongoDB.php
index 2eccfcd..4963035 100644
--- a/src/main/php/appenders/LoggerAppenderMongoDB.php
+++ b/src/main/php/appenders/LoggerAppenderMongoDB.php
@@ -30,7 +30,7 @@
  * - **username** - Username used to connect to the database.
  * - **password** - Password used to connect to the database.
  * - **timeout** - For how long the driver should try to connect to the database (in milliseconds).
- * - **capped** - Whether the collection should be a fixed size..
+ * - **capped** - Whether the collection should be a fixed size.
  * - **cappedMax** - If the collection is fixed size, the maximum number of elements to store in the collection.
  * - **cappedSize** - If the collection is fixed size, its size in bytes.
  * 

http://git-wip-us.apache.org/repos/asf/logging-log4php/blob/63e20f67/src/site/xdoc/docs/appenders/mongodb.xml
----------------------------------------------------------------------
diff --git a/src/site/xdoc/docs/appenders/mongodb.xml b/src/site/xdoc/docs/appenders/mongodb.xml
index bd327b9..a1b99f8 100644
--- a/src/site/xdoc/docs/appenders/mongodb.xml
+++ b/src/site/xdoc/docs/appenders/mongodb.xml
@@ -97,6 +97,27 @@
 							<td>3000</td>
 							<td>For how long the driver should try to connect to the database (in milliseconds).</td>
 						</tr>
+                        <tr>
+                            <td>capped</td>
+                            <td>integer</td>
+                            <td>No</td>
+                            <td>false</td>
+                            <td>Whether the collection should be a fixed size.</td>
+                        </tr>
+                        <tr>
+                            <td>cappedMax</td>
+                            <td>integer</td>
+                            <td>No</td>
+                            <td>1000</td>
+                            <td>If the collection is fixed size, the maximum number of elements to store in the collection.</td>
+                        </tr>
+                        <tr>
+                            <td>cappedSize</td>
+                            <td>integer</td>
+                            <td>No</td>
+                            <td>1000000</td>
+                            <td>If the collection is fixed size, its size in bytes.</td>
+                        </tr>
 					</tbody>
 				</table>
 			</subsection>
@@ -110,7 +131,11 @@
 						</tr>
 					</thead>
 					<tbody>
-						<tr>
+                        <tr>
+                            <td><code>3.0.0</code></td>
+                            <td>Added support for capped collections.</td>
+                        </tr>
+                        <tr>
 							<td><code>2.2.0</code></td>
 							<td>Added the <code>timeout</code> parameter.</td>
 						</tr>