Logs are first class system outputs; system administrators often depend on their reliability in production.
Test Swift applications and libraries to ensure they emit the expected log entries.
This Swift package provides a
swift-logLogHandler
for use during application testing.
See the example for details on how to use swift-log-testing
in tests.
Status
This package is currently beta. Breaking changes will be indicated by incrementing the MINOR version number (0.X)
until the 1.0 major version is released.
swift-log-testing
Logs are first class system outputs; system administrators often depend on their reliability in production. Test Swift applications and libraries to ensure they emit the expected log entries. This Swift package provides a swift-log LogHandler for use during application testing.
To declare the dependency in
Package.swift
:then (typically) add the dependency to the testing target:
See the example for details on how to use swift-log-testing in tests.
Status
This package is currently beta. Breaking changes will be indicated by incrementing the MINOR version number (0.X) until the 1.0 major version is released.