Skip to content

Releases: lovetodream/swift-log-loki

v2.0.0-alpha.1

02 May 13:50
0a75620
Compare
Choose a tag to compare
v2.0.0-alpha.1 Pre-release
Pre-release

The public API (and the internals) have been completely reworked. LoggingLoki does no longer rely on FoundationNetworking, instead it uses AsyncHTTPClient to better support non Apple Platforms, most notably Linux.
The processor/transport is no longer tightly coupled to the LogHandler, this means it's possible to have multiple LogHandlers with the same processor. The main reason for this change was to fully leverage structured concurrency in v2. LokiProcessor conforms to ServiceLifecycle.Service and sends logs to Loki as long as it's run method is active.
This change allows you to send pending logs regularly without receiving a new log from a log handler, previously new logs were always needed in order to trigger a call to Loki.

Version 2 allows you to send custom service/log-handler specific labels now. You can also specify the log format sent to Loki.

The documentation is available on the Swift Package Index.

What's Changed

SemVer Major

SemVer Minor

Full Changelog: v1.1.0...v2.0.0-alpha.1

v1.1.0

28 Dec 10:18
fb800a4
Compare
Choose a tag to compare

SemVer Minor

  • Support for Swift Concurrency by adding Sendable conformance
  • Support for additional platforms (iOS, watchOS, tvOS)

Full Changelog: v1.0.0...v1.1.0

v1.0.0

09 Dec 12:26
8e45fd9
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: https://github.com/lovetodream/swift-log-loki/commits/v1.0.0