Add opinionated logging integration
まだ誰も着手していません。
評価
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 初心者へのやさしさ
- 20/100
- issue の種類
- 機能追加
- 明瞭さ
- 説明が足りない
- 活発さ
- 停滞
- 領域
- 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 の本文から書いたものです。
説明
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
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
spring-projects/spring-shell のほかの issue
-
NonInteractiveShellRunner, wrong exit value when Commands cannot be parsed対応中かも @czpilar が 3 日前に担当しました。 オープン
難易度 3/5 1〜2日 初心者へのやさしさ 72/100
spring-projects/spring-shell#1391 · コメント 2 件 ·
-
Options validation error messages in non-interactive mode対応中かも @czpilar が 3 日前に担当しました。 オープン
難易度 3/5 1〜2日 初心者へのやさしさ 65/100
spring-projects/spring-shell#1390 · コメント 3 件 ·
-
ShellInputProvider inputs are not consumed by `ComponentFlow`-based interactive components (e.g. `ConfirmationInput`, `StringInput`)対応中かも @czpilar が 15 日前に担当しました。 オープンtype/enhancement
難易度 3/5 1〜2日 初心者へのやさしさ 68/100
spring-projects/spring-shell#1383 · コメント 6 件 ·
-
area/dependencies type/enhancement
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
spring-projects/spring-shell#1213 · リアクション 1 件 ·
-
Revisit dependency to Spring Messaging対応中かも @piotrooo が 289 日前に担当しました。 オープンarea/dependencies type/enhancement
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
spring-projects/spring-shell#1205 · コメント 1 件 ·
spring-projects/spring-shell の issue をすべて見る
似ている issue
-
難易度 1/5 1時間未満 初心者へのやさしさ 74/100
メンテナーはふだん 1 日以内に返信
-
team:Lumberjack
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
OpenLiberty/open-liberty#35998 ·
メンテナーはふだん 1 日以内に返信
-
[BUG] SQS SendMessageBatch accepts more than 10 entries instead of TooManyEntriesInBatchRequestオープン
難易度 2/5 1〜3時間 初心者へのやさしさ 67/100
floci-io/floci#5319 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
Bug QWP
難易度 2/5 1〜3時間 初心者へのやさしさ 79/100
メンテナーはふだん 3 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 64/100