Skip to content

Commit

Permalink
use own logback configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
Angelina Velinska committed Apr 17, 2013
1 parent 1ed8654 commit b4c6d0e
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 0 deletions.
12 changes: 12 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@

<properties>
<nexus.version>2.3.0-04</nexus.version>
<logback.version>1.0.7</logback.version>
<nexus.ga.trackerId>UA-30755831-3</nexus.ga.trackerId>
<trackedRepositories>cms-releases</trackedRepositories>
</properties>
Expand Down Expand Up @@ -134,6 +135,17 @@
<scope>provided</scope>
</dependency>

<dependency>
<groupId>ch.qos.logback</groupId>
<artifactId>logback-core</artifactId>
<version>${logback.version}</version>
</dependency>
<dependency>
<groupId>ch.qos.logback</groupId>
<artifactId>logback-classic</artifactId>
<version>${logback.version}</version>
</dependency>

</dependencies>

<build>
Expand Down
33 changes: 33 additions & 0 deletions src/main/resources/logback.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
<?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>
<!-- always a good activate OnConsoleStatusListener -->
<statusListener class="ch.qos.logback.core.status.OnConsoleStatusListener"/>

<appender name="FILE" class="ch.qos.logback.core.rolling.RollingFileAppender">
<file>logs/nexus-ga.log</file>
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
<fileNamePattern>logs/nexus-ga.%d{yyyy-MM-dd}.log.zip</fileNamePattern>
</rollingPolicy>

<encoder>
<pattern>combined</pattern>
<!--<pattern>%date %h %u "%i{Referer}" "%i{User-Agent}"</pattern>-->
</encoder>
</appender>

<appender-ref ref="FILE"/>
</configuration>

0 comments on commit b4c6d0e

Please sign in to comment.