00001 log4j replace logback and remove lib directory

0.3
lishengzhao 10 years ago
parent 1ffa0506a4
commit 7155a9c705

@ -1,3 +0,0 @@
#NOTE: This is an Aether internal implementation file, its format can be changed without prior notice.
#Thu Nov 07 15:05:54 CST 2013
logback-ext-parent-0.1.2-SNAPSHOT.pom>=

@ -1,414 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
~ Copyright 2012 Ceki Gulcu, Les Hazlewood, et. al.
~
~ Licensed under the Apache License, Version 2.0 (the "License");
~ you may not use this file except in compliance with the License.
~ You may obtain a copy of the License at
~
~ http://www.apache.org/licenses/LICENSE-2.0
~
~ Unless required by applicable law or agreed to in writing, software
~ distributed under the License is distributed on an "AS IS" BASIS,
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
~ See the License for the specific language governing permissions and
~ limitations under the License.
-->
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.sonatype.oss</groupId>
<artifactId>oss-parent</artifactId>
<version>7</version>
</parent>
<groupId>org.logback-extensions</groupId>
<artifactId>logback-ext-parent</artifactId>
<packaging>pom</packaging>
<version>0.1.2-SNAPSHOT</version>
<name>Logback Extensions</name>
<url>https://github.com/qos-ch/logback-extensions/wiki</url>
<description>
Logback Extensions provides community-driven and supported extensions to the Logback logging framework.
</description>
<inceptionYear>2012</inceptionYear>
<licenses>
<license>
<name>Apache License, Version 2.0</name>
<url>http://www.apache.org/licenses/LICENSE-2.0</url>
<distribution>repo</distribution>
</license>
</licenses>
<scm>
<connection>scm:git:git://github.com/qos-ch/logback-extensions.git</connection>
<developerConnection>scm:git:git@github.com:qos-ch/logback-extensions.git</developerConnection>
<url>https://github.com/qos-ch/logback-extensions</url>
</scm>
<issueManagement>
<system>GitHub</system>
<url>https://github.com/qos-ch/logback-extensions/issues</url>
</issueManagement>
<developers>
<developer>
<id>lhazlewood</id>
<name>Les Hazlewood</name>
<email>les@hazlewood.com</email>
<url>http://www.leshazlewood.com</url>
<timezone>-8</timezone>
</developer>
<developer>
<id>belaso</id>
<name>Christian Trutz</name>
<email>christian.trutz@belaso.de</email>
<url>http://www.belaso.de</url>
<timezone>+2</timezone>
</developer>
<developer>
<id>tony19</id>
<name>Tony Trinh</name>
<email>tony19@gmail.com</email>
<url>http://tony19.github.com</url>
<timezone>-5</timezone>
</developer>
</developers>
<modules>
<!--<module>loggly</module>-->
<module>spring</module>
</modules>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<!-- Compile Dependencies: -->
<logback.version>1.0.9</logback.version>
<jackson.version>1.9.5</jackson.version>
<spring.version>3.1.1.RELEASE</spring.version>
<mongo-java-driver.version>2.7.3</mongo-java-driver.version>
<!-- Test Dependencies: -->
<easymock.version>3.1</easymock.version>
<groovy.version>1.8.6</groovy.version>
<jmockit.version>0.999.15</jmockit.version>
<junit.version>4.8.2</junit.version>
</properties>
<dependencies>
<!-- Test Dependencies for _all_ children modules: -->
<dependency>
<groupId>org.codehaus.groovy</groupId>
<artifactId>groovy-all</artifactId>
<version>${groovy.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.easymock</groupId>
<artifactId>easymock</artifactId>
<version>${easymock.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.googlecode.jmockit</groupId>
<artifactId>jmockit</artifactId>
<version>${jmockit.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>${junit.version}</version>
<scope>test</scope>
</dependency>
</dependencies>
<dependencyManagement>
<dependencies>
<!-- Pool of dependencies available to any sub-module, but not included automatically.
They must be explicitly referenced in the children POMs, but _don't_ include
version numbers in the child POMs. Define them here only to guarantee version
compatibility across children modules! -->
<!-- Logback Extensions sub-modules dependency .jars (alphabetized based on artifactId for easy scanning please!): -->
<dependency>
<groupId>ch.qos.logback</groupId>
<artifactId>logback-access</artifactId>
<version>${logback.version}</version>
</dependency>
<dependency>
<groupId>ch.qos.logback</groupId>
<artifactId>logback-classic</artifactId>
<version>${logback.version}</version>
</dependency>
<dependency>
<groupId>ch.qos.logback</groupId>
<artifactId>logback-core</artifactId>
<version>${logback.version}</version>
</dependency>
<dependency>
<groupId>ch.qos.logback.extensions</groupId>
<artifactId>logback-ext-jackson</artifactId>
<!--suppress MavenModelInspection -->
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>ch.qos.logback.extensions</groupId>
<artifactId>logback-ext-json-classic</artifactId>
<!--suppress MavenModelInspection -->
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>ch.qos.logback.extensions</groupId>
<artifactId>logback-ext-json-core</artifactId>
<!--suppress MavenModelInspection -->
<version>${project.version}</version>
</dependency>
<!-- 3rd party dependencies: -->
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>servlet-api</artifactId>
<version>2.5</version>
<scope>provided</scope>
<optional>true</optional>
</dependency>
<dependency>
<groupId>org.codehaus.jackson</groupId>
<artifactId>jackson-mapper-asl</artifactId>
<version>${jackson.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-context</artifactId>
<version>${spring.version}</version>
<scope>provided</scope>
<optional>true</optional>
<exclusions>
<exclusion>
<groupId>commons-logging</groupId>
<artifactId>commons-logging</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-web</artifactId>
<version>${spring.version}</version>
<scope>provided</scope>
<optional>true</optional>
<exclusions>
<exclusion>
<groupId>commons-logging</groupId>
<artifactId>commons-logging</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.mongodb</groupId>
<artifactId>mongo-java-driver</artifactId>
<version>${mongo-java-driver.version}</version>
<scope>provided</scope>
</dependency>
</dependencies>
</dependencyManagement>
<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>2.3.2</version>
<configuration>
<source>1.6</source>
<target>1.6</target>
<encoding>UTF-8</encoding>
</configuration>
</plugin>
<plugin>
<!-- For unit tests: -->
<groupId>org.codehaus.gmaven</groupId>
<artifactId>gmaven-plugin</artifactId>
<version>1.4</version>
<configuration>
<providerSelection>1.7</providerSelection>
<source>src/main/groovy</source>
</configuration>
<dependencies>
<dependency>
<groupId>org.codehaus.gmaven.runtime</groupId>
<artifactId>gmaven-runtime-1.7</artifactId>
<version>1.3</version>
<exclusions>
<exclusion>
<groupId>org.codehaus.groovy</groupId>
<artifactId>groovy-all</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.codehaus.groovy</groupId>
<artifactId>groovy-all</artifactId>
<version>${groovy.version}</version>
</dependency>
</dependencies>
</plugin>
<plugin>
<groupId>org.eclipse.m2e</groupId>
<artifactId>lifecycle-mapping</artifactId>
<version>1.0.0</version>
<configuration>
<lifecycleMappingMetadata>
<pluginExecutions>
<pluginExecution>
<pluginExecutionFilter>
<groupId>org.codehaus.gmaven</groupId>
<artifactId>gmaven-plugin</artifactId>
<versionRange>[1.0.0,)</versionRange>
<goals>
<goal>testCompile</goal>
</goals>
</pluginExecutionFilter>
<action>
<ignore />
</action>
</pluginExecution>
</pluginExecutions>
</lifecycleMappingMetadata>
</configuration>
</plugin>
</plugins>
</pluginManagement>
<plugins>
<!-- Allow tests to be written in Groovy: -->
<plugin>
<groupId>org.codehaus.gmaven</groupId>
<artifactId>gmaven-plugin</artifactId>
<executions>
<execution>
<goals>
<!--suppress MavenModelInspection -->
<goal>testCompile</goal>
</goals>
</execution>
</executions>
</plugin>
<!--<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
<version>1.4</version>
<executions>
<execution>
<id>sign-artifacts</id>
<phase>verify</phase>
<goals>
<goal>sign</goal>
</goals>
</execution>
</executions>
</plugin> -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-release-plugin</artifactId>
<version>2.2.2</version>
<configuration>
<preparationGoals>clean install</preparationGoals>
<autoVersionSubmodules>true</autoVersionSubmodules>
<useReleaseProfile>false</useReleaseProfile>
<!-- <goals>deploy site-deploy</goals> -->
<goals>deploy</goals>
<arguments>-Prelease</arguments>
<mavenExecutorId>forked-path</mavenExecutorId>
</configuration>
</plugin>
</plugins>
</build>
<profiles>
<profile>
<id>release</id>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>2.8.1</version>
<executions>
<execution>
<id>attach-api-docs</id>
<goals>
<!--suppress MavenModelInspection -->
<goal>jar</goal>
</goals>
</execution>
</executions>
<inherited>true</inherited>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>2.1.2</version>
<executions>
<execution>
<id>attach-sources</id>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
<inherited>true</inherited>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>release-sign-artifacts</id>
<activation>
<property>
<name>performRelease</name>
<value>true</value>
</property>
</activation>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
<version>1.4</version>
<executions>
<execution>
<id>sign-artifacts</id>
<phase>verify</phase>
<goals>
<goal>sign</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>

@ -1,6 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<metadata>
<groupId>org.logback-extensions</groupId>
<artifactId>logback-ext-parent</artifactId>
<version>0.1.2-SNAPSHOT</version>
</metadata>

@ -1,19 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<metadata modelVersion="1.1.0">
<groupId>org.logback-extensions</groupId>
<artifactId>logback-ext-parent</artifactId>
<version>0.1.2-SNAPSHOT</version>
<versioning>
<snapshot>
<localCopy>true</localCopy>
</snapshot>
<lastUpdated>20131107070554</lastUpdated>
<snapshotVersions>
<snapshotVersion>
<extension>pom</extension>
<value>0.1.2-SNAPSHOT</value>
<updated>20131107070554</updated>
</snapshotVersion>
</snapshotVersions>
</versioning>
</metadata>

@ -1,11 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<metadata>
<groupId>org.logback-extensions</groupId>
<artifactId>logback-ext-parent</artifactId>
<versioning>
<versions>
<version>0.1.2-SNAPSHOT</version>
</versions>
<lastUpdated>20131107070554</lastUpdated>
</versioning>
</metadata>

@ -1,4 +0,0 @@
#NOTE: This is an Aether internal implementation file, its format can be changed without prior notice.
#Thu Nov 07 12:01:52 CST 2013
logback-ext-spring-0.1.2-SNAPSHOT.jar>=
logback-ext-spring-0.1.2-SNAPSHOT.pom>=

@ -1,51 +0,0 @@
<!--
~ Copyright 2012 Ceki Gulcu, Les Hazlewood, et. al.
~
~ Licensed under the Apache License, Version 2.0 (the "License");
~ you may not use this file except in compliance with the License.
~ You may obtain a copy of the License at
~
~ http://www.apache.org/licenses/LICENSE-2.0
~
~ Unless required by applicable law or agreed to in writing, software
~ distributed under the License is distributed on an "AS IS" BASIS,
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
~ See the License for the specific language governing permissions and
~ limitations under the License.
-->
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<parent>
<groupId>org.logback-extensions</groupId>
<artifactId>logback-ext-parent</artifactId>
<version>0.1.2-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>logback-ext-spring</artifactId>
<name>Logback Extensions :: Spring</name>
<packaging>jar</packaging>
<dependencies>
<dependency>
<groupId>ch.qos.logback</groupId>
<artifactId>logback-classic</artifactId>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-context</artifactId>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-web</artifactId>
</dependency>
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>servlet-api</artifactId>
</dependency>
</dependencies>
</project>

@ -1,24 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<metadata modelVersion="1.1.0">
<groupId>org.logback-extensions</groupId>
<artifactId>logback-ext-spring</artifactId>
<version>0.1.2-SNAPSHOT</version>
<versioning>
<snapshot>
<localCopy>true</localCopy>
</snapshot>
<lastUpdated>20131107040152</lastUpdated>
<snapshotVersions>
<snapshotVersion>
<extension>jar</extension>
<value>0.1.2-SNAPSHOT</value>
<updated>20131107040152</updated>
</snapshotVersion>
<snapshotVersion>
<extension>pom</extension>
<value>0.1.2-SNAPSHOT</value>
<updated>20131107040152</updated>
</snapshotVersion>
</snapshotVersions>
</versioning>
</metadata>

@ -1,11 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<metadata>
<groupId>org.logback-extensions</groupId>
<artifactId>logback-ext-spring</artifactId>
<versioning>
<versions>
<version>0.1.2-SNAPSHOT</version>
</versions>
<lastUpdated>20131107040152</lastUpdated>
</versioning>
</metadata>

@ -302,22 +302,21 @@
<scope>compile</scope>
</dependency>
<dependency>
<groupId>ch.qos.logback</groupId>
<artifactId>logback-classic</artifactId>
<version>1.0.13</version>
</dependency>
<dependency>
<groupId>org.logback-extensions</groupId>
<artifactId>logback-ext-spring</artifactId>
<version>0.1.2-SNAPSHOT</version>
<groupId>log4j</groupId>
<artifactId>log4j</artifactId>
<version>1.2.14</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>jul-to-slf4j</artifactId>
<artifactId>slf4j-log4j12</artifactId>
<version>1.7.5</version>
<scope>compile</scope>
</dependency>
<!--mybatis-->
<dependency>
<groupId>org.mybatis</groupId>
@ -356,11 +355,5 @@
</dependency>
</dependencies>
<repositories>
<repository>
<id>basedir</id>
<url>file://${project.basedir}/lib/</url>
</repository>
</repositories>
</project>

@ -0,0 +1,28 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
<log4j:configuration xmlns:log4j='http://jakarta.apache.org/log4j/'>
<!--console-->
<appender name="Console" class="org.apache.log4j.ConsoleAppender">
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="%d %p [%c] - %m%n"/>
</layout>
</appender>
<root>
<level value="DEBUG"/>
<appender-ref ref="Console"/>
</root>
<!--spring logger-->
<logger name="org.springframework" additivity="false">
<level value="WARN"/>
<appender-ref ref="Console"/>
</logger>
</log4j:configuration>

@ -1,18 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<appender name="Console" class="ch.qos.logback.core.ConsoleAppender">
<encoder class="ch.qos.logback.classic.encoder.PatternLayoutEncoder">
<pattern>%d{yyyy-MM-dd HH:mm:ss} %level %class:%line - %msg%n</pattern>
</encoder>
</appender>
<!--springframework package level: WARN-->
<logger name="org.springframework" level="WARN"/>
<root level="WARN">
<appender-ref ref="Console"/>
</root>
</configuration>

@ -63,11 +63,11 @@
<param-value>classpath:spring/*.xml</param-value>
</context-param>
<context-param>
<param-name>logbackConfigLocation</param-name>
<param-value>/WEB-INF/logback.xml</param-value>
<param-name>log4jConfigLocation</param-name>
<param-value>/WEB-INF/log4j.xml</param-value>
</context-param>
<listener>
<listener-class>ch.qos.logback.ext.spring.web.LogbackConfigListener</listener-class>
<listener-class>org.springframework.web.util.Log4jConfigListener</listener-class>
</listener>
<!-- Spring context listener -->

@ -0,0 +1,8 @@
log4j.rootLogger=INFO, stdout
log4j.appender.stdout=org.apache.log4j.ConsoleAppender
#log4j.appender.stdout.Threshold=INFO
#log4j.appender.stdout.ImmediateFlush=true
log4j.appender.stdout.Target=System.out
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
log4j.appender.stdout.layout.ConversionPattern=%d %p [%c] - %m%n
Loading…
Cancel
Save