Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Add opinionated logging integration

オープン
#1,008 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
20/100
issue の種類
機能追加
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
java, spring
領域
cli, observability

調査の方向性

Start by reviewing the Spring Shell logging configuration examples in the issue and the behavior of interactive versus non-interactive terminal output. The issue names no files, tests, or entry points, so the first step is to locate the existing logging and shell startup configuration. Done means agreeing on and implementing a defined approach for conditional debug logging, file logging, and startup errors without disrupting interactive output.

索引モデルが issue の本文から書いたものです。

説明

type/enhancement

Backround; logging is hard especially with cli apps where whole infrastructure is designed for server applications.

While logging should be relatively fine with plain command output it will completely mess up terminal if there is any interactive components relying terminal escape characters.

In normal shell app you want to disable console logging:

logging:
  pattern:
    console:

And possibly add debug logs to a shell temporarily:

logging:
  file:
    name: shell.log
  level:
    root: debug
    org:
      springframework:
        shell: debug

Trouble with this is that you never get any errors if a shell hard fails at startup.

We should come up with custom opinionated logging configuration so that:

  • User can conditionally enable debug logging
  • Can configure logging into file
  • Can have some automatic "magic" depending if command is interactive or non-interactive
  • Regarding if terminal should not have any logging into console, automatically write those into file

We'll keep this issue to collect ideas and other discussion to prepare a solution.

主要言語
Java
スター
826
フォーク
404
平均マージ
6日 9時間
マージ済み PR(30日)
1

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

spring-projects/spring-shell のほかの issue

spring-projects/spring-shell の issue をすべて見る

似ている issue

Java の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。