Skip to content

Commit

Permalink
Release 1.7.2
Browse files Browse the repository at this point in the history
* release/1.7.2:
  Updated version to 1.7.2
  Code refactoring
  Closing httpclient properly on logback shutdown
  • Loading branch information
fantavlik committed Mar 29, 2019
2 parents a32ab69 + 8cb48a1 commit b3becb7
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 12 deletions.
8 changes: 6 additions & 2 deletions CHANGELOG.md
@@ -1,5 +1,9 @@
# Splunk Logging for Java Changelog

## Version 1.7.2

* Closing httpclient properly on logback shutdown [#112](https://github.com/splunk/splunk-library-javalogging/pull/112).

## Version 1.7.1

* Change HttpEventCollectorLogbackAppender stop method to call this.sender.close() [#93](https://github.com/splunk/splunk-library-javalogging/pull/93).
Expand All @@ -11,8 +15,8 @@

## Version 1.6.2

* Add support to allow users to define their own event body serializer for HTTP event adapter: Simply create a class implementing `com.splunk.logging.EventBodySerializer`,
and add the full class name as a property (`eventBodySerializer`) to the adapter.
* Add support to allow users to define their own event body serializer for HTTP event adapter: Simply create a class implementing `com.splunk.logging.EventBodySerializer`,
and add the full class name as a property (`eventBodySerializer`) to the adapter.
Default will be a JSON event body containing message, severity, and other properties. [#86](https://github.com/splunk/splunk-library-javalogging/pull/86).

## Version 1.6.1
Expand Down
18 changes: 9 additions & 9 deletions README.md
@@ -1,6 +1,6 @@
# Splunk Logging for Java

#### Version 1.7.1
#### Version 1.7.2

Splunk logging for Java enables you to log events to HTTP Event Collector or to a TCP input on a Splunk Enterprise instance within your Java applications. You can use three major Java logging frameworks: [Logback](http://logback.qos.ch), [Log4j 2](http://logging.apache.org/log4j/2.x/), and [java.util.logging](https://docs.oracle.com/javase/7/docs/api/java/util/logging/package-summary.html). Splunk logging for Java is also enabled for [Simple Logging Facade for Java (SLF4J)](http://www.slf4j.org).

Expand All @@ -18,16 +18,16 @@ Splunk logging for Java provides:

## Documentation and resources

* For more information about installing and using Splunk logging for Java, see
* For more information about installing and using Splunk logging for Java, see
[Overview of Splunk logging for Java](http://dev.splunk.com/goto/sdk-slj).

* For reference documentation, see the
* For reference documentation, see the
[Splunk logging for Java API reference](https://docs.splunk.com/DocumentationStatic/JavaLogging/1.6.2/index.html).

* For all things developer with Splunk, see the
* For all things developer with Splunk, see the
[Splunk Developer Portal](http://dev.splunk.com).

* For more about about Splunk in general, see
* For more about about Splunk in general, see
[Splunk>Docs](http://docs.splunk.com/Documentation/Splunk).

## License
Expand All @@ -38,12 +38,12 @@ See the [LICENSE file](/license.md) for details.

## Contributions

[Get the Splunk Java Logging Framework from GitHub](https://github.com/splunk/splunk-library-javalogging)
and clone the resources to your computer. For example, use the following
command:
[Get the Splunk Java Logging Framework from GitHub](https://github.com/splunk/splunk-library-javalogging)
and clone the resources to your computer. For example, use the following
command:

git clone https://github.com/splunk/splunk-library-javalogging.git

## Support

The Splunk logging for Java is community-supported.
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Expand Up @@ -6,7 +6,7 @@

<groupId>com.splunk.logging</groupId>
<artifactId>splunk-library-javalogging</artifactId>
<version>1.7.1</version>
<version>1.7.2</version>
<packaging>jar</packaging>

<name>Splunk Logging for Java</name>
Expand Down
Expand Up @@ -204,6 +204,8 @@ public synchronized void flush() {
public synchronized void flush(boolean close) {
if (eventsBatch.size() > 0) {
postEventsAsync(eventsBatch, close);
} else if (close) {
this.stopHttpClient();
}
// Clear the batch. A new list should be created because events are
// sending asynchronously and "previous" instance of eventsBatch object
Expand Down

0 comments on commit b3becb7

Please sign in to comment.