Added Logback configuration
Added configuration for Logback.
* For amazon-kinesis-client the configuration is only in test.
* For amazon-kinesis-client-multilang the configuration is both for
test, and normal use.
Some additional dependency fighting. IntelliJ was really confused.
This commit is contained in:
parent
1998db4577
commit
5b30cb0eeb
6 changed files with 93 additions and 8 deletions
|
|
@ -83,13 +83,6 @@
|
|||
<scope>test</scope>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>com.amazonaws</groupId>
|
||||
<artifactId>DynamoDBLocal</artifactId>
|
||||
<version>1.11.86</version>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
|
||||
</dependencies>
|
||||
|
||||
</project>
|
||||
|
|
@ -0,0 +1,26 @@
|
|||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!--
|
||||
~ Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
||||
~
|
||||
~ Licensed under the Amazon Software License (the "License").
|
||||
~ You may not use this file except in compliance with the License.
|
||||
~ A copy of the License is located at
|
||||
~
|
||||
~ http://aws.amazon.com/asl/
|
||||
~
|
||||
~ or in the "license" file accompanying this file. This file 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.
|
||||
-->
|
||||
<configuration>
|
||||
<appender name="CONSOLE" class="ch.qos.logback.core.ConsoleAppender">
|
||||
<encoder>
|
||||
<pattern>%d [%thread] %-5level %logger{36} [%mdc{ShardId:-NONE}] - %msg %n</pattern>
|
||||
</encoder>
|
||||
</appender>
|
||||
|
||||
<root level="INFO">
|
||||
<appender-ref ref="CONSOLE" />
|
||||
</root>
|
||||
</configuration>
|
||||
|
|
@ -0,0 +1,26 @@
|
|||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!--
|
||||
~ Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
||||
~
|
||||
~ Licensed under the Amazon Software License (the "License").
|
||||
~ You may not use this file except in compliance with the License.
|
||||
~ A copy of the License is located at
|
||||
~
|
||||
~ http://aws.amazon.com/asl/
|
||||
~
|
||||
~ or in the "license" file accompanying this file. This file 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.
|
||||
-->
|
||||
<configuration>
|
||||
<appender name="CONSOLE" class="ch.qos.logback.core.ConsoleAppender">
|
||||
<encoder>
|
||||
<pattern>%d [%thread] %-5level %logger{36} [%mdc{ShardId:-NONE}] - %msg %n</pattern>
|
||||
</encoder>
|
||||
</appender>
|
||||
|
||||
<root level="INFO">
|
||||
<appender-ref ref="CONSOLE" />
|
||||
</root>
|
||||
</configuration>
|
||||
|
|
@ -49,6 +49,7 @@
|
|||
<sqlite4java.version>1.0.392</sqlite4java.version>
|
||||
<sqlite4java.native>libsqlite4java</sqlite4java.native>
|
||||
<sqlite4java.libpath>${project.build.directory}/test-lib</sqlite4java.libpath>
|
||||
<slf4j.version>1.7.25</slf4j.version>
|
||||
</properties>
|
||||
|
||||
<dependencies>
|
||||
|
|
@ -85,7 +86,7 @@
|
|||
<dependency>
|
||||
<groupId>org.slf4j</groupId>
|
||||
<artifactId>slf4j-api</artifactId>
|
||||
<version>1.7.25</version>
|
||||
<version>${slf4j.version}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.projectlombok</groupId>
|
||||
|
|
@ -129,6 +130,7 @@
|
|||
<version>1.1.7</version>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
|
||||
</dependencies>
|
||||
|
||||
<repositories>
|
||||
|
|
|
|||
26
amazon-kinesis-client/src/test/resources/logback.xml
Normal file
26
amazon-kinesis-client/src/test/resources/logback.xml
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!--
|
||||
~ Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
||||
~
|
||||
~ Licensed under the Amazon Software License (the "License").
|
||||
~ You may not use this file except in compliance with the License.
|
||||
~ A copy of the License is located at
|
||||
~
|
||||
~ http://aws.amazon.com/asl/
|
||||
~
|
||||
~ or in the "license" file accompanying this file. This file 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.
|
||||
-->
|
||||
<configuration>
|
||||
<appender name="CONSOLE" class="ch.qos.logback.core.ConsoleAppender">
|
||||
<encoder>
|
||||
<pattern>%d [%thread] %-5level %logger{36} [%mdc{ShardId:-NONE}] - %msg %n</pattern>
|
||||
</encoder>
|
||||
</appender>
|
||||
|
||||
<root level="INFO">
|
||||
<appender-ref ref="CONSOLE" />
|
||||
</root>
|
||||
</configuration>
|
||||
12
pom.xml
12
pom.xml
|
|
@ -41,11 +41,23 @@
|
|||
<distribution>repo</distribution>
|
||||
</license>
|
||||
</licenses>
|
||||
|
||||
<modules>
|
||||
<module>amazon-kinesis-client</module>
|
||||
<module>amazon-kinesis-client-multilang</module>
|
||||
</modules>
|
||||
|
||||
<developers>
|
||||
<developer>
|
||||
<id>amazonwebservices</id>
|
||||
<organization>Amazon Web Services</organization>
|
||||
<organizationUrl>https://aws.amazon.com</organizationUrl>
|
||||
<roles>
|
||||
<role>developer</role>
|
||||
</roles>
|
||||
</developer>
|
||||
</developers>
|
||||
|
||||
<build>
|
||||
<pluginManagement>
|
||||
<plugins>
|
||||
|
|
|
|||
Loading…
Reference in a new issue