LoggingGitHubActions
A logging backend for SwiftLog that translates logging messages into workflow commands for GitHub Actions.
Requirements
- Swift 5.1+
Usage
Conditionally Bootstrapping GitHubActionsLogHandler
Using a Logger
Create an instance of Logger
and log messages accordingly.
When your program is run as a step in a GitHub Actions workflow,
warning and error messages will be formatted in such a way that
it'll be surfaced in the GitHub Actions UI.
Installation
LoggingGitHubActions requires Xcode 11
or a Swift 5.1 toolchain with the Swift Package Manager.
Swift Package Manager
Add swift-log-github-actions
as a dependency to your Package.swift
file.
Add "LoggingGitHubActions
to your target's dependencies.