Set MongoDB driver logging to WARN

Project: http://git-wip-us.apache.org/repos/asf/incubator-brooklyn/repo
Commit: 
http://git-wip-us.apache.org/repos/asf/incubator-brooklyn/commit/ec1d33f7
Tree: http://git-wip-us.apache.org/repos/asf/incubator-brooklyn/tree/ec1d33f7
Diff: http://git-wip-us.apache.org/repos/asf/incubator-brooklyn/diff/ec1d33f7

Branch: refs/heads/master
Commit: ec1d33f79e353adf640df1adccb4bcf3916702cb
Parents: d62ed2f
Author: Sam Corbett <[email protected]>
Authored: Wed Sep 16 11:51:38 2015 +0100
Committer: Sam Corbett <[email protected]>
Committed: Wed Sep 16 11:51:38 2015 +0100

----------------------------------------------------------------------
 .../src/main/resources/brooklyn/logback-logger-excludes.xml   | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-brooklyn/blob/ec1d33f7/usage/logback-includes/src/main/resources/brooklyn/logback-logger-excludes.xml
----------------------------------------------------------------------
diff --git 
a/usage/logback-includes/src/main/resources/brooklyn/logback-logger-excludes.xml
 
b/usage/logback-includes/src/main/resources/brooklyn/logback-logger-excludes.xml
index 3416264..9f8738b 100644
--- 
a/usage/logback-includes/src/main/resources/brooklyn/logback-logger-excludes.xml
+++ 
b/usage/logback-includes/src/main/resources/brooklyn/logback-logger-excludes.xml
@@ -55,5 +55,10 @@
                <!-- Wordnik logs errors in a few places which aren't errors at 
all; ignore them altogether (not even to a file, because it makes lots of ERROR 
lines).
                     (Turn them back on if you need to see how API-doc gets 
generated, and also see https://github.com/wordnik/swagger-core/issues/58) -->
        </logger>
-       
+
+    <!-- The MongoDB Java driver is much too noisy at INFO. -->
+    <logger name="org.mongodb.driver" level="WARN" additivity="false">
+        <appender-ref ref="FILE" />
+    </logger>
+
 </included>

Reply via email to