Releases: loki4j/loki-logback-appender
v2.0.1
Bug fixes
#314 Spring context is not loading when Loki server is not accessible
#320 Security: Upgrade logback-classic to 1.5.19
Misc
#312 Docs: Fix configuration example (by @dionisioC)
#319 Switch integration test from Loki 3.4.3 to Loki 3.5.4
#321 Migrate publishing from closed OSSRH to Central Portal
v2.0.0
This release is concentrated on bringing first-class support for MDC and KVP in labels and structured metadata. It took a significant re-design of how label patterns are specified in the config and, thus, required a major version to be incremented. Also, we used this major release as an opportunity to revisit some old decisions regarding the overall configuration structure, and some defaults as well. We tried to put first things first and reduce the noise. Although, the amount of breaking changes in this release is quite significant, following our Migration guide should help you to upgrade smoothly.
New features
#283 Upgrade Logback to 1.5.x
#295 New structure for Loki4j configuration
#300 Improve MDC and Key-Value handling for labels/metadata
#303 Better defaults for labels/metadata/message
#308 MDC and KVP added to structured metadata by default
Fixed bugs
#299 Added '\r' as pair separator
#302 More robust implementation of waitPipelineIsEmpty()
#307 Fix extracting multiple bulk patterns
Refactoring
#292 Encoder: switch KVs from arrays to maps
#293 LogRecord: switch KVs from arrays to maps
#294 Encoder decoupled from Writer
#297 HTTP configuration refactoring
Misc
#290 Switch integration test from Loki 3.3.1 to Loki 3.4.3
#291 Switch compatibility test from Java 23 to Java 24
#296 Upgrade setup-gradle action to v4
#298 Upgrade Gradle wrapper to 8.14
#304 Dependencies upgraded
#306 Upgrade protobuf dependency to 4.31
v2.0.0-rc1
This is the first release candidate for Loki4j v2.0.0. You can use it for feature evaluation and testing. Please don't hesitate to report any issues or regressions to the project's issue tracker.
New features
#283 Upgrade Logback to 1.5.x
#295 New structure for Loki4j configuration
#300 Improve MDC and Key-Value handling for labels/metadata
#303 Better defaults for labels/metadata/message
Fixed bugs
#299 Added '\r' as pair separator
#302 More robust implementation of waitPipelineIsEmpty()
Refactoring
#292 Encoder: switch KVs from arrays to maps
#293 LogRecord: switch KVs from arrays to maps
#294 Encoder decoupled from Writer
#297 HTTP configuration refactoring
Misc
#290 Switch integration test from Loki 3.3.1 to Loki 3.4.3
#291 Switch compatibility test from Java 23 to Java 24
#296 Upgrade setup-gradle action to v4
#298 Upgrade Gradle wrapper to 8.14
#304 Dependencies upgraded
Compatibility
This release contains breaking changes. You can track the progress on docs update here.
v1.6.0
Version 1.6.0 contains several new features and improvements. The most notable one is probably structured metadata support. There are some breaking changes in compatibility matrix, protobuf support, and some format settings. Please check the Migration guide for the details.
New features
#233 Key-value pairs support in JSON layout
#236 Upgrade proto file from the upstream
#237 Drop Java 8 support
#238 Upgrade Logback to 1.4.x
#239 Report time to Loki with nanosecond precision
#259 Structured metadata support
#267 Ignore whitespace in label and structured metadata patterns
#271 Drop sorting records by time
#279 Json message layer: support of writing arbitrary objects
Bug fixes
#243 Loki appender didn't retry on HttpConnectTimeoutException
Refactoring
#265 Key-value pairs extraction rework
Misc
#229 Switch integration test from Loki 2.9.1 to Loki 3.0.0
#234 Upgrade Github actions
#235 Fix Grafana Cloud test
#248 Performance tests for JsonLayout fix options
#254 Fix published licence URL
#260 Switch integration test from Loki 3.0.0 to Loki 3.2.0
#261 Add Java 22 to compatibility test
#268 Dependencies upgraded
#276 Upgrade protobuf dependency to 4.29
#277 Switch integration test from Loki 3.2.0 to Loki 3.3.1
#278 Switch compatibility test from Java 22 to Java 23
v1.6.0-rc2
This is a second release candidate for Loki4j v1.6.0. You can use it for feature evaluation and testing. Please don't hesitate to report any issues or regressions to the project's issue tracker. Below is the list of changes since 1.6.0-rc1.
New features
#279 Json message layer: support of writing arbitrary objects
Misc
#276 Upgrade protobuf dependency to 4.29
#277 Switch integration test from Loki 3.2.0 to Loki 3.3.1
#278 Switch compatibility test from Java 22 to Java 23
Compatibility
This release contains breaking changes. You can track the progress on docs update here.
v1.6.0-rc1
This is a first release candidate for Loki4j v1.6.0. You can use it for feature evaluation and testing. Please don't hesitate to report any issues or regressions to the project's issue tracker. Below is the list of changes since 1.6.0-m1.
New features
#259 Structured metadata support
#267 Ignore whitespace in label and structured metadata patterns
#271 Drop sorting records by time
Refactoring
#265 Key-value pairs extraction rework
Misc
#254 Fix published licence URL
#260 Switch integration test from Loki 3.0.0 to Loki 3.2.0
#261 Add Java 22 to compatibility test
#268 Dependencies upgraded
Compatibility
This release contains breaking changes. You can track the progress on docs update here.
v1.6.0-m1
This is a feature preview for Loki4j v1.6.0. You can use it for feature evaluation and testing. Please don't hesitate to report any issues or regressions to the project's issue tracker.
New features
#233 Key-value pairs support in JSON layout
#236 Upgrade proto file from the upstream
#237 Drop Java 8 support
#238 Upgrade Logback to 1.4.x
#239 Report time to Loki with nanosecond precision
Bug fixes
#243 Loki appender didn't retry on HttpConnectTimeoutException
Misc
#229 Switch integration test from Loki 2.9.1 to Loki 3.0.0
#234 Upgrade Github actions
#235 Fix Grafana Cloud test
#248 Performance tests for JsonLayout fix options
Compatibility
There are breaking changes, you can track the progress on docs update here.
v1.5.2
v1.5.1
v1.5.0
This release brings you JSON message layout and several enhancements in retry functionality. It also contains a few breaking changes, the most notable one is an upgrade to Logback v1.3.x. Please check the Migration guide before upgrading.
New features
#193 Add support for retries on 429 rate limited requests (by @acm19)
#197 Upgrade Logback to 1.3.x
#204 Add exponential backoff and jitter for retries (by @acm19)
#206 JSON message layout support
Bug fixes
#211 Appender shouldn't fail on label parsing error
#218 JsonLayout: Message parameters are missing
Refactoring
#213 DummyHttpClient interface improvement
#214 Polishing retry functionality
Misc
#198 GrafanaCloud URL updated for integration tests
#208 Switch compatibility test from Java 20 to Java 21
#210 Add performance test for JsonLayer
#212 Dependencies upgraded