Skip to content

v2.0.0-alpha.1

Pre-release
Pre-release
Compare
Choose a tag to compare
@lovetodream lovetodream released this 02 May 13:50
0a75620

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