swiftlang / swiftlang/swift-java

Consolidate how we do logging in plugins

Open
#193 1 comment 0 reactions 1 assignee View on GitHub

@ktoso is already working on this.

Since Jun 6, 2025.

good first issue help wanted
Dominant language
Swift
Stars
1.2k
Forks
123
Avg merge
1d 7h
Merged PRs (30d)
16

Description

The plugins are very messy in how they log, don't really have log levels and have different styles.

It also can be very useful to know where we log and if we're in a command plugin or swift-java in Swift or in Java or some other invocation since things get complex quickly.

Currently this is manually done through a mix of printlns and wannabe logging.

We should probably just adopt swift-log and also make a simple logger type for the Java side of the libary that logs in the same style.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.