test-config.logback.xml Maven / Gradle / Ivy
<?xml version="1.0" encoding="UTF-8"?> <!-- Sonatype Nexus (TM) Open Source Version Copyright (c) 2007-2012 Sonatype, Inc. All rights reserved. Includes the third-party code listed at http://links.sonatype.com/products/nexus/oss/attributions. This program and the accompanying materials are made available under the terms of the Eclipse Public License Version 1.0, which accompanies this distribution and is available at http://www.eclipse.org/legal/epl-v10.html. Sonatype Nexus (TM) Professional Version is available from Sonatype, Inc. "Sonatype" and "Sonatype Nexus" are trademarks of Sonatype, Inc. Apache Maven is a trademark of the Apache Software Foundation. M2eclipse is a trademark of the Eclipse Foundation. All other trademarks are the property of their respective owners. --> <configuration> <appender name="logfile" class="ch.qos.logback.core.rolling.RollingFileAppender"> <File>${project.build.directory}/logs/tests.log</File> <Append>true</Append> <encoder> <pattern>%4d{yyyy-MM-dd HH:mm:ss} %-5p - %m [%c]%n</pattern> </encoder> <rollingPolicy class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy"> <maxIndex>12</maxIndex> <FileNamePattern>${project.build.directory}/logs/tests.log.%i</FileNamePattern> </rollingPolicy> <triggeringPolicy class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy"> <MaxFileSize>10MB</MaxFileSize> </triggeringPolicy> </appender> <logger name="httpclient" level="WARN"/> <logger name="org.apache.commons.httpclient" level="WARN"/> <logger name="org.sonatype.guice.plexus" level="INFO"/> <logger name="org.sonatype.security.configuration.source.FileSecurityConfigurationSource" level="WARN"/> <logger name="org.sonatype.nexus.test.utils.NexusStatusUtil" level="INFO"/> <root level="${it.test.log.level:-INFO}"> <appender-ref ref="logfile" /> </root> </configuration>