Skip to content

Releases: newrelic/newrelic-java-log4j-appender

Release v1.0.6

13 Jan 13:03
33a5e9f
Compare
Choose a tag to compare

##Release v1.0.6

What's Changed

Applying a New Version

<dependency>
  <groupId>com.newrelic.labs</groupId>
  <artifactId>custom-log4j2-appender</artifactId>
  <version>1.0.6</version>
</dependency>

App Config Settings - Refer ReadMe

Full Changelog: 1.0.5...1.0.6

v1.0.5

17 Dec 12:15
e52af1f
Compare
Choose a tag to compare

Release Notes - Version 1.0.5

New Relic Log4j2 Appender

New Features

  • Configurable Retry Mechanism: Introduced a new configuration parameter maxRetries, allowing users to specify the maximum number of retry attempts for sending logs.

    • Log Failure Management: If logs cannot be sent successfully within the specified retries, they will be discarded. This provides greater control over log failure management.
  • Optimized Log Sending: Enhanced the appender to manage retry attempts more effectively by utilizing the configured flushInterval before retrying after a failure.

    • Network Efficiency: This optimization prevents excessive send attempts and reduces potential strain on the network and endpoint.
  • Seamless Recovery: Improved the appender's ability to reset the retry counter once the connection to the endpoint is restored and logs are sent successfully.

    • Normal Operations: Allows the appender to resume normal operations, immediately flushing logs when the batch size is reached, ensuring timely log delivery.
  • Handling New Messages After Retry Exhaustion: Enhanced the appender to ensure that if the queue is cleared due to retry exhaustion, new messages will be added and processed with a fresh retry cycle.

    • Continued Log Delivery: Each new message will be attempted up to the maxRetries limit, ensuring continued log delivery efforts.
  • Connection Timeout Configuration: Introduced a new configuration parameter timeout to specify the connection timeout for HTTP requests to New Relic's logging service.

    • Default Timeout: Set to 30 seconds (30000 milliseconds), this parameter helps manage network conditions and server response times.

Applying a New Version

<dependency>
  <groupId>com.newrelic.labs</groupId>
  <artifactId>custom-log4j2-appender</artifactId>
  <version>1.0.5</version>
</dependency>

App Config Settings - Refer ReadMe

These enhancements in version 1.0.5 aim to improve the robustness and flexibility of your logging setup, providing better control over retry mechanisms and network interactions.

Full Changelog: 1.0.4...1.0.5

v1.0.4

28 Nov 11:23
479ec8a
Compare
Choose a tag to compare

What's Changed

  • fix: requeue logentries failed due to case sensitive applicationName parameter

Applying a new Version

<dependency>
  <groupId>com.newrelic.labs</groupId>
  <artifactId>custom-log4j2-appender</artifactId>
  <version>1.0.4</version>
</dependency>

Full Changelog: 1.0.3...1.0.4

v1.0.3

19 Nov 08:50
479ec8a
Compare
Choose a tag to compare

Release Notes - Version 1.0.3

New Relic Log4j2 Appender

New Features

  • Custom Fields Configuration: Introduced a new configuration parameter mergeCustomFields. This parameter allows users to control how custom fields are added to log events.
    • Default Behavior: Custom fields are added as subfields under the custom field (e.g., custom.field1, custom.field2).
    • Merge Custom Fields: When mergeCustomFields is set to true, custom fields are added as main attributes (e.g., field1, field2).

Applying a new Version

<dependency>
  <groupId>com.newrelic.labs</groupId>
  <artifactId>custom-log4j2-appender</artifactId>
  <version>1.0.3</version>
</dependency>

What's Changed

Full Changelog: 1.0.2...1.0.3

v1.0.2

30 Oct 09:43
64b523f
Compare
Choose a tag to compare

Release Notes for v1.0.2

We are excited to announce the release of version 1.0.2 of the New Relic Log4j2 Appender. This release includes several enhancements and improvements to better meet your logging needs.

Maven Dependency

Please take a note

This new version has a new group assigned for the Maven dependency:

<dependency>
  <groupId>com.newrelic.labs</groupId>
  <artifactId>custom-log4j2-appender</artifactId>
  <version>1.0.2</version>
</dependency>

New Features and Enhancements

  1. Custom Fields Support:

    • Applications can now pass custom fields as a comma-separated list of name-value pairs.
    • This allows for greater flexibility and customization in your log data.
  2. Improved Flushing Mechanism:

    • The appender now flushes the log batch whenever the batch is full or the flush interval is triggered.
    • This ensures timely delivery of logs and reduces the risk of log data loss.

What's Changed

Full Changelog: Compare v0.0.8...v1.0.2

We hope you find these improvements beneficial. If you have any feedback or encounter any issues, please feel free to reach out to us.

Thank you for using the New Relic Log4j2 Appender!

v0.0.8

22 Oct 08:33
6bfa145
Compare
Choose a tag to compare

v0.0.8

This pre-release is for customers to test the custom Log4j2 appender.

  • Artifact: The attached custom-log4j2-appender.jar is a pre-built jar file intended for local use only.
  • Instructions: For detailed setup and usage instructions, please refer to the README. You can also integrate the project using Maven Central.

Thank you for testing!

What's Changed

New Contributors

Full Changelog: https://github.com/newrelic-experimental/newrelic-java-log4j-appender/commits/0.0.8