Skip to content

Releases: newrelic/java-log-extensions

Version 3.3.0

13 Dec 18:20
d461ab7
Compare
Choose a tag to compare

What's Changed

  • Remove Apache commons-lang classes from final logging extension jars

Full Changelog: v3.2.0...v3.3.0

Version 3.2.0

25 Sep 22:51
3f50936
Compare
Choose a tag to compare

What's Changed

  • Upgrade logback-core and logback-classic dependencies to version 1.2.13

Full Changelog: v3.1.0...v3.2.0

Version 3.1.0

31 Oct 21:34
394fe37
Compare
Choose a tag to compare

What's Changed

  • Exception Stack Traces
    • Capture the full (nested) stack trace for exceptions.
    • Add configuration option to allow unlimited stack trace size, by setting the maximum stack trace option to 0.
      • This can be configured via
        • System property: -Dnewrelic.log_extension.max_stack_size=0
        • Environment variable: NEW_RELIC_LOG_EXTENSION_MAX_STACK_SIZE=0
  • Logback MDC (Mapped Diagnostic Context)
    • Fix bug where MDC values were not retained when using the extension with Logback v1.4.8 and higher.

New Contributors

Full Changelog: v3.0.0...v3.1.0

Version 3.0.0

27 Jun 12:45
ca73bcd
Compare
Choose a tag to compare

What's Changed

  • Exception Stack Trace Size - this has been changed from a default of 10 to 300. This applies to all logging libraries supported by the java-log-extension project.
    • This is configurable via:
      • System property: -Dnewrelic.log_extension.max_stack_size=integer
      • Environment Variable: NEW_RELIC_LOG_EXTENSION_MAX_STACK_SIZE=integer
  • Mapped Diagnostic Context (MDC) - decorating logs with MDC data is now generally supported but disabled by default. MDC keys will be prefixed by context. to prevent clashes with New Relic specific attributes. This applies to all logging libraries supported by the java-log-extension project, except for Java Util Logging (JUL) which does not provide an MDC mechanism.
    • This is configurable via:
      • System property: -Dnewrelic.log_extension.add_mdc=boolean
      • Environment Variable: NEW_RELIC_LOG_EXTENSION_ADD_MDC=boolean
    • Note: This is considered a breaking change as previously some of the logging libraries automatically added MDC. If you upgrade to this version of the java-log-extension and wish to have MDC added to your logs then you will need to explicitly enable it. Currently, this will add all MDC as filtering out specific keys is not yet supported.

Full Changelog: v2.6.0...v3.0.0

Version 2.6.0

17 Oct 20:54
f4ca3ff
Compare
Choose a tag to compare

What's Changed

  • Removed the log forwarder. Please use the New Relic Java Agent if you want log forwarding to be used.
  • Upgrade Gradle to version 7.5.1

New Contributors

  • @kford-newrelic made their first contribution in #66
  • @obenkenobi made their first contribution in #68

Full Changelog: v2.5.0...v2.6.0

Version 2.5.0

27 May 16:24
d84250c
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v2.4.0...v2.5.0

Version 2.4.0

06 Apr 17:17
2aed87a
Compare
Choose a tag to compare

What's Changed

  • Add a forwarder module that does log forwarding using the New Relic Java Telemetry SDK
  • Implement com.newrelic.logging.logback.NewRelicHttpAppender to do log forwarding for logback
  • Update log4j2 dependencies to version 2.17.2
  • Update Java agent API dependencies to version 7.6.0

New Contributors

  • @noly made their first contribution in #45

Full Changelog: v2.3.2...v2.4.0

Version 2.3.2

02 Feb 17:47
96cf1fd
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v2.3.1...v2.3.2

2.3.1

16 Dec 18:28
13c1ccd
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v2.3...v2.3.1

2.3

18 May 22:35
414d91a
Compare
Choose a tag to compare
2.3

Add support for custom arguments in the JSON log for logback. Thank you @krishnatejadinavahi

Usage:

import static com.newrelic.logging.logback.CustomArgument.keyValue;
logger.info("Custom log", keyValue("customKey", "customValue"));