Skip to content

v1.0.5

Compare
Choose a tag to compare
@gsidhwani-nr gsidhwani-nr released this 17 Dec 12:15
· 14 commits to main since this release
e52af1f

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