Skip to content

Commit

Permalink
update sender dependency (#54)
Browse files Browse the repository at this point in the history
* update sender dependency

* update test matrix
  • Loading branch information
tamir-michaeli authored Jul 30, 2023
1 parent 62cc441 commit 4512ebe
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
java: [ '8', '11', '15' ]
java: [ '11', '15','17' ]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
Expand Down
20 changes: 19 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,24 @@ This appender sends logs to your [Logz.io](http://logz.io) account, using non-bl
This appender uses [LogzioSender](https://github.com/logzio/logzio-java-sender) implementation. Once you send a log, it will be enqueued in the queue and 100% non-blocking. There is a background task that will handle the log shipment for you. This jar is an "Uber-Jar" that shades both LogzioSender, BigQueue, Gson and Guava to avoid "dependency hell".

### Installation from maven
JDK 8:
```xml
<dependency>
<groupId>io.logz.log4j2</groupId>
<artifactId>logzio-log4j2-appender</artifactId>
<version>1.0.19</version>
</dependency>
```

JDK 11 and above:
```xml
<dependency>
<groupId>io.logz.log4j2</groupId>
<artifactId>logzio-log4j2-appender</artifactId>
<version>2.0.0</version>
</dependency>
```

The appender also requires a logger implementation, for example:
```xml
<dependency>
Expand Down Expand Up @@ -146,11 +157,18 @@ Will send a log to Logz.io that looks like this:
```

### Release notes
- 2.0.0 - THIS IS A SNAPSHOT RELEASE - SUPPORTED WITH JDK 11 AND ABOVE
- Updated LogzioSender version to `2.0.0`:
- Fixes an issue where DiskQueue was not clearing disk space when using JDK 11 and above.
- 1.0.19
- Updated LogzioSender version to `1.1.8`:
- Fix an issue where log is not being truncated properly between size of 32.7k to 500k.
- 1.0.18
- updated logzio sender version, fixing IndexOutOfBounds exception with bigqueue

<details>
<summary markdown="span"> Expand to check old versions </summary>

- 1.0.16
- Added exceedMaxSizeAction parameter for handling oversized logs.
- 1.0.15
Expand Down Expand Up @@ -182,7 +200,7 @@ Will send a log to Logz.io that looks like this:
- Fixed an issue: [LogzioAppender does not let the JVM exit](https://github.com/logzio/logzio-log4j2-appender/issues/2)
- 1.0.0
- Initial releases

</details>

### Contribution
- Fork
Expand Down
8 changes: 4 additions & 4 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>io.logz.log4j2</groupId>
<artifactId>logzio-log4j2-appender</artifactId>
<version>1.0.19</version>
<version>2.0.0</version>

<packaging>jar</packaging>
<name>Logz.io Log4j2 Appender</name>
Expand Down Expand Up @@ -36,7 +36,7 @@
</scm>

<properties>
<logzio-sender-version>1.1.8</logzio-sender-version>
<logzio-sender-version>2.0.0</logzio-sender-version>
</properties>

<build>
Expand All @@ -46,8 +46,8 @@
<artifactId>maven-compiler-plugin</artifactId>
<version>3.5.1</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
<source>11</source>
<target>11</target>
</configuration>
</plugin>
<plugin>
Expand Down

0 comments on commit 4512ebe

Please sign in to comment.