Skip to content

Commit

Permalink
Version 1.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
sndyuk committed May 14, 2016
1 parent cc3494e commit f4621af
Show file tree
Hide file tree
Showing 10 changed files with 188 additions and 143 deletions.
25 changes: 9 additions & 16 deletions LICENSE
@@ -1,20 +1,13 @@
Copyright (c) 2012 sndyuk <sanada@sndyuk.com>

Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:
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

The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.
http://www.apache.org/licenses/LICENSE-2.0

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
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.
37 changes: 14 additions & 23 deletions README.md
Expand Up @@ -5,11 +5,11 @@ You can logging to DynamoDB, Fluentd and more with the logback appender.

Appenders
--------------------------------------
- [fluentd](http://fluentd.org/)
- [fluentd](http://fluentd.org/)
- depend on [fluent-logger for Java](https://github.com/fluent/fluent-logger-java).
- Install fluentd before running logger.

- [Amazon DynamoDB](http://aws.amazon.com/jp/dynamodb/)
- [Amazon DynamoDB](http://aws.amazon.com/jp/dynamodb/)
- depend on [aws-java-sdk](http://aws.amazon.com/jp/sdkforjava/).
- Create Amazon DynamoDB Table

Expand All @@ -29,56 +29,47 @@ Configure your pom.xml:
<version>${logback.version}</version>
</dependency>
<!-- If you use fluentd appender -->
<dependency>
<groupId>com.sndyuk</groupId>
<artifactId>logback-more-appenders</artifactId>
<version>1.2.0</version>
</dependency>
<!-- If you use The Fluentd appender, You need to add the dependency(fluent-logger). -->
<dependency>
<groupId>org.fluentd</groupId>
<artifactId>fluent-logger</artifactId>
<version>${fluentd.logger.version}</version>
</dependency>
<!-- If you use Amazon DynamoDB appender -->
<!-- If you use The Amazon DynamoDB appender, You need to add the dependency(aws-java-sdk). -->
<dependency>
<groupId>com.amazonaws</groupId>
<artifactId>aws-java-sdk</artifactId>
<version>${aws.version}</version>
</dependency>
<dependency>
<groupId>com.sndyuk</groupId>
<artifactId>logback-more-appenders</artifactId>
<version>1.1.3</version>
</dependency>
</dependencies>
<repositories>
<repository>
<id>com.sndyuk</id>
<name>Logback more appenders</name>
<url>http://sndyuk.github.com/maven</url>
</repository>
</repositories>
```

### Configure your logback.xml
You can find configuration files here:
You can find configuration files example here:

- [logback-appenders.xml](https://github.com/sndyuk/logback-more-appenders/blob/master/src/test/resources/logback-appenders.xml)
- [logback.xml](https://github.com/sndyuk/logback-more-appenders/blob/master/src/test/resources/logback.xml)


Creating Amazon DynamoDB Table
--------------------------------------
Before you use The Amazon DynamoDB appender, You need to create a table on DynamoDB:
Before you use The Amazon DynamoDB appender, you need to create the table on DynamoDB:

AWS Console -> DynamoDB -> Choose region -> Create Table ->

Table Name: [Table name described logback.xml]
Table Name: [Table name described in logback.xml]
Partition key: "instance" as String / (Hash Attribute)
Add sort key: "id" as Number / (Range Attribute)


License
--------------------------------------
[MIT LICENSE](LICENSE)

[Apache License, Version 2.0](LICENSE)
104 changes: 81 additions & 23 deletions pom.xml
Expand Up @@ -3,15 +3,15 @@
<modelVersion>4.0.0</modelVersion>
<groupId>com.sndyuk</groupId>
<artifactId>logback-more-appenders</artifactId>
<version>1.1.3</version>
<version>1.2.0</version>
<name>logback-more-appenders</name>
<description>logback appenders.</description>

<licenses>
<license>
<name>Apache License, Version 2.0</name>
<url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
<distribution>manual</distribution>
<distribution>repo</distribution>
</license>
</licenses>

Expand All @@ -25,30 +25,12 @@

<packaging>jar</packaging>

<distributionManagement>
<!--
$ mvn -DaltDeploymentRepository=snapshot-repo::default::file:../maven clean deploy
$ cd ../maven
$ git add -A
$ git commit -m "..."
$ git push origin gh-pages
-->
<repository>
<id>repo</id>
<url>http://github.com/sndyuk/maven/logback-more-appenders/release</url>
</repository>
<snapshotRepository>
<id>snapshot-repo</id>
<url>http://github.com/sndyuk/maven/logback-more-appenders/snapshots</url>
</snapshotRepository>
</distributionManagement>

<build>
<plugins>
<plugin>
<groupId>com.mycila.maven-license-plugin</groupId>
<artifactId>maven-license-plugin</artifactId>
<version>1.9.0</version>
<groupId>com.mycila</groupId>
<artifactId>license-maven-plugin</artifactId>
<version>2.3</version>
<configuration>
<aggregate>true</aggregate>
<strictCheck>true</strictCheck>
Expand Down Expand Up @@ -112,4 +94,80 @@

</dependencies>

<developers>
<developer>
<name>Yuki Sanada</name>
<email>sanada@sndyuk.com</email>
</developer>
</developers>

<scm>
<connection>scm:git:git@github.com:sndyuk/logback-more-appenders.git</connection>
<developerConnection>scm:git:git@github.com:sndyuk/logback-more-appenders.git</developerConnection>
<url>git@github.com:sndyuk/logback-more-appenders.git</url>
</scm>

<profiles>
<profile>
<id>local</id>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<distributionManagement>
<!--
$ mvn -DaltDeploymentRepository=snapshot-repo::default::file:../maven clean deploy
$ cd ../maven
$ git add -A
$ git commit -m "..."
$ git push origin gh-pages
-->
<repository>
<id>repo</id>
<url>http://github.com/sndyuk/maven/logback-more-appenders/release</url>
</repository>
<snapshotRepository>
<id>snapshot-repo</id>
<url>http://github.com/sndyuk/maven/logback-more-appenders/snapshots</url>
</snapshotRepository>
</distributionManagement>
</profile>

<profile>
<id>release</id>
<!-- for release -->
<!-- mvn -DperformRelease=true deploy -->
<activation>
<property>
<name>performRelease</name>
<value>true</value>
</property>
</activation>
<build>
<plugins>
<!-- generate PGP Signature -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
<version>1.5</version>
<executions>
<execution>
<id>sign-artifacts</id>
<phase>verify</phase>
<goals>
<goal>sign</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
<distributionManagement>
<repository>
<id>sonatype-nexus-staging</id>
<name>Nexus Release Repository</name>
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
</repository>
</distributionManagement>
</profile>
</profiles>
</project>
25 changes: 9 additions & 16 deletions src/main/java/ch/qos/logback/more/appenders/DaemonAppender.java
@@ -1,24 +1,17 @@
/**
* Copyright (c) 2012 sndyuk <sanada@sndyuk.com>
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the
* "Software"), to deal in the Software without restriction, including
* without limitation the rights to use, copy, modify, merge, publish,
* distribute, sublicense, and/or sell copies of the Software, and to
* permit persons to whom the Software is furnished to do so, subject to
* the following conditions:
* 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
*
* The above copyright notice and this permission notice shall be
* included in all copies or substantial portions of the Software.
* http://www.apache.org/licenses/LICENSE-2.0
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
* LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
* OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
* 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.
*/
package ch.qos.logback.more.appenders;

Expand Down
@@ -1,24 +1,17 @@
/**
* Copyright (c) 2012 sndyuk <sanada@sndyuk.com>
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the
* "Software"), to deal in the Software without restriction, including
* without limitation the rights to use, copy, modify, merge, publish,
* distribute, sublicense, and/or sell copies of the Software, and to
* permit persons to whom the Software is furnished to do so, subject to
* the following conditions:
* 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
*
* The above copyright notice and this permission notice shall be
* included in all copies or substantial portions of the Software.
* http://www.apache.org/licenses/LICENSE-2.0
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
* LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
* OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
* 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.
*/
package ch.qos.logback.more.appenders;

Expand Down

0 comments on commit f4621af

Please sign in to comment.