From bd924075a053ab1af40ba42fa6d15c365b4aab66 Mon Sep 17 00:00:00 2001
From: Vladimir Gorej <gorej@codescale.net>
Date: Tue, 1 Jan 2013 16:37:07 +0100
Subject: [PATCH] LOG4PHP-203; added capped collection support for mongo
 appender to docs.


Signed-off-by: Vladimir Gorej <gorej@codescale.net>
---
 src/main/php/appenders/LoggerAppenderMongoDB.php |    2 +-
 src/site/xdoc/docs/appenders/mongodb.xml         |   27 +++++++++++++++++++++-
 2 files changed, 27 insertions(+), 2 deletions(-)

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.
  * 
diff --git a/src/site/xdoc/docs/appenders/mongodb.xml b/src/site/xdoc/docs/appenders/mongodb.xml
index bd327b9..8af692d 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>
-- 
1.7.9.5

