All Downloads are FREE. Search and download functionalities are using the official Maven repository.

default-config.logback-nexus.xml Maven / Gradle / Ivy

There is a newer version: 2.5.1-01
Show newest version
<?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.

-->
<included>

  <appender name="console" class="ch.qos.logback.core.ConsoleAppender">
    <encoder>
      <pattern>%d %p [%c] - %m%n</pattern>
    </encoder>
  </appender>

  <appender name="logfile" class="ch.qos.logback.core.rolling.RollingFileAppender">
    <!--See also http://logback.qos.ch/manual/appenders.html#RollingFileAppender-->
    <File>${project.build.directory}/logs/${test-id}/nexus.log</File>
    <Append>true</Append>
    <encoder>
      <pattern>%4d{yyyy-MM-dd HH:mm:ss} %-5p [%-15.15t] - %c - %m%n</pattern>
    </encoder>
    <rollingPolicy class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy">
      <maxIndex>12</maxIndex>
      <FileNamePattern>${project.build.directory}/logs/${test-id}/nexus.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.sonatype.nexus.rest.NexusApplication" level="WARN">
    <appender-ref ref="console"/>
  </logger>
  <logger name="org.apache.http" level="WARN"/>
  <logger name="org.restlet" level="${it.nexus.log.level:-WARN}">
    <appender-ref ref="console"/>
    <appender-ref ref="logfile" />
  </logger>
  <logger name="org.apache.commons" level="WARN"/>
  <logger name="eu.medsea.mimeutil" level="WARN"/>

  <root level="${it.nexus.log.level:-INFO}">
    <appender-ref ref="logfile"/>
  </root>
  
</included>




© 2015 - 2024 Weber Informatics LLC | Privacy Policy