Allon Mureinik has uploaded a new change for review. Change subject: core: Logging configuration for dal tests ......................................................................
core: Logging configuration for dal tests A simple initial log4j configuration file for the dal tests. This configuration solves most of the "noise" that's printed to the screen during these tests. Change-Id: I1862bd1aa4a936fceaf79f5419e8b4ae079cd601 Signed-off-by: Allon Mureinik <amure...@redhat.com> --- A backend/manager/modules/dal/src/test/resources/log4j.xml 1 file changed, 79 insertions(+), 0 deletions(-) git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/96/11896/1 diff --git a/backend/manager/modules/dal/src/test/resources/log4j.xml b/backend/manager/modules/dal/src/test/resources/log4j.xml new file mode 100644 index 0000000..e1cbf68 --- /dev/null +++ b/backend/manager/modules/dal/src/test/resources/log4j.xml @@ -0,0 +1,79 @@ +<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE log4j:configuration SYSTEM "log4j.dtd"> + +<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/" debug="false"> + + <!-- Log levels:DEBUG,INFO,WARN,ERROR,FATAL --> + + <!-- ============================== --> + <!-- Append messages to the console --> + <!-- ============================== --> + + <appender name="CONSOLE" class="org.apache.log4j.ConsoleAppender"> + <errorHandler class="org.jboss.logging.util.OnlyOnceErrorHandler"/> + <param name="Target" value="System.out"/> + <param name="Threshold" value="INFO"/> + + <layout class="org.apache.log4j.PatternLayout"> + <!-- The default pattern: Date Priority [Category] Message\n --> + <param name="ConversionPattern" value="%d{ABSOLUTE} %-5p [%c{1}] %m%n"/> + </layout> + </appender> + + <!-- ================ --> + <!-- Limit categories --> + <!-- ================ --> + + <!-- Limit the com.sun category to INFO as its FINE is verbose --> + <category name="com.sun"> + <priority value="INFO"/> + </category> + + <!-- Limit the sun category to INFO as its FINE is verbose --> + <category name="sun"> + <priority value="INFO"/> + </category> + + <!-- Limit the javax.xml.bind category to INFO as its FINE is verbose --> + <category name="javax.xml.bind"> + <priority value="INFO"/> + </category> + + <!-- Limit the org.springframework categories --> + <category name="org.springframework"> + <priority value="WARN"/> + </category> + + <!-- ======================= --> + <!-- oVirt categories --> + <!-- ======================= --> + + <!--TOP configuration for all oVirt categories --> + <category name="org.ovirt.engine.core" additivity="false"> + <priority value="INFO"/> + </category> + + <category name="org.ovirt.engine.core.utils.ejb.EJBUtilsStrategy" > + <priority value="ERROR"/> + </category> + + <!--Postgres causes lots of verboe messages in INFO level: + "Added default SqlReturnResultSet parameter named #result-set-1"--> + <category name="org.ovirt.engine.core.dal.dbbroker.PostgresDbEngineDialect$PostgresJdbcTemplate"> + <priority value="WARN"/> + </category> + + <!-- ======================= --> + <!-- Setup the Root category --> + <!-- ======================= --> + + <root> + <!-- + Set the root logger priority via a system property. Note this is parsed by log4j, + so the full JBoss system property format is not supported; e.g. + setting a default via ${jboss.server.log.threshold:WARN} will not work. + --> + <priority value="WARN"/> + </root> + + +</log4j:configuration> -- To view, visit http://gerrit.ovirt.org/11896 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I1862bd1aa4a936fceaf79f5419e8b4ae079cd601 Gerrit-PatchSet: 1 Gerrit-Project: ovirt-engine Gerrit-Branch: master Gerrit-Owner: Allon Mureinik <amure...@redhat.com> _______________________________________________ Engine-patches mailing list Engine-patches@ovirt.org http://lists.ovirt.org/mailman/listinfo/engine-patches