Skip to content

Commit

Permalink
It generates two logback.xml files in project #5
Browse files Browse the repository at this point in the history
  • Loading branch information
greenlaw110 committed Jan 27, 2019
1 parent 2f9a4d7 commit 22bb472
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 161 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Act Maven Archetypes Project

**1.8.18.0**
* update starter to 1.8.18.0
* It generates two logback.xml files in project #5

**1.8.17.1** - 24/Dec/2018
* update starter to 1.8.17.1

Expand Down
2 changes: 1 addition & 1 deletion maven-archetype-quickstart/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
<parent>
<groupId>org.actframework</groupId>
<artifactId>act-maven-archetypes</artifactId>
<version>1.8.17.2-SNAPSHOT</version>
<version>1.8.18.0-SNAPSHOT</version>
</parent>

<build>
Expand Down
2 changes: 1 addition & 1 deletion maven-archetype-simple-restful-service/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
<parent>
<groupId>org.actframework</groupId>
<artifactId>act-maven-archetypes</artifactId>
<version>1.8.17.2-SNAPSHOT</version>
<version>1.8.18.0-SNAPSHOT</version>
</parent>

<build>
Expand Down

This file was deleted.

6 changes: 3 additions & 3 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

<artifactId>act-maven-archetypes</artifactId>
<packaging>pom</packaging>
<version>1.8.17.2-SNAPSHOT</version>
<version>1.8.18.0-SNAPSHOT</version>

<name>ActFramework Maven Archetypes Project</name>
<description>A set of maven archetypes for actframework application</description>
Expand All @@ -29,14 +29,14 @@
<parent>
<groupId>org.actframework</groupId>
<artifactId>parent</artifactId>
<version>1.8.17</version>
<version>1.8.18-SNAPSHOT</version>
</parent>

<properties>
<java.version>1.7</java.version>
<maven.compiler.source>${java.version}</maven.compiler.source>
<maven.compiler.target>${java.version}</maven.compiler.target>
<act-starter-parent.version>1.8.17.1</act-starter-parent.version>
<act-starter-parent.version>1.8.18.0-SNAPSHOT</act-starter-parent.version>
<scm.url>[email protected]:actframework/act-maven-archetypes.git</scm.url>
<maven-dependency-plugin.version>3.0.2</maven-dependency-plugin.version>
<maven-antrun-plugin.version>1.8</maven-antrun-plugin.version>
Expand Down
1 change: 0 additions & 1 deletion src/main/resources/META-INF/maven/archetype-metadata.xml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@
<directory>src/main/resources</directory>
<includes>
<include>**/*.version</include>
<include>logback.xml</include>
</includes>
</fileSet>
<fileSet encoding="UTF-8" packaged="true">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,38 +39,6 @@
</triggeringPolicy>
</appender>

<!-- action trace log file -->
<appender name="TRACE_FILE" class="ch.qos.logback.core.rolling.RollingFileAppender">
<file>act-trace.log</file>
<encoder class="ch.qos.logback.classic.encoder.PatternLayoutEncoder">
<Pattern>%d{yyyy-MM-dd_HH:mm:ss.SSS} [%thread] %-5level %logger - %msg%n</Pattern>
</encoder>
<rollingPolicy class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy">
<FileNamePattern>/act-trace.%i.log.zip</FileNamePattern>
<MinIndex>1</MinIndex>
<MaxIndex>10</MaxIndex>
</rollingPolicy>
<triggeringPolicy class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
<MaxFileSize>2MB</MaxFileSize>
</triggeringPolicy>
</appender>

<!-- request trace log file -->
<appender name="ACCESS_FILE" class="ch.qos.logback.core.rolling.RollingFileAppender">
<file>act-access.log</file>
<encoder class="ch.qos.logback.classic.encoder.PatternLayoutEncoder">
<Pattern>%d{yyyy-MM-dd_HH:mm:ss.SSS} [%thread] %-5level %logger - %msg%n</Pattern>
</encoder>
<rollingPolicy class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy">
<FileNamePattern>/act-access.%i.log.zip</FileNamePattern>
<MinIndex>1</MinIndex>
<MaxIndex>10</MaxIndex>
</rollingPolicy>
<triggeringPolicy class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
<MaxFileSize>2MB</MaxFileSize>
</triggeringPolicy>
</appender>

<!-- act-test test log file -->
<appender name="TEST_FILE" class="ch.qos.logback.core.rolling.RollingFileAppender">
<file>test.log</file>
Expand Down Expand Up @@ -126,14 +94,6 @@
<appender-ref ref="DB_FILE" />
</logger>

<logger name="act.trace.handler" level="TRACE" additivity="true">
<appender-ref ref="TRACE_FILE" />
</logger>

<logger name="act.trace.request" level="TRACE" additivity="true">
<appender-ref ref="ACCESS_FILE" />
</logger>

<logger name="act.test" level="INFO" additivity="false">
<appender-ref ref="TEST_STDOUT"/>
<appender-ref ref="TEST_FILE"/>
Expand Down

0 comments on commit 22bb472

Please sign in to comment.