App.msg/warn/err events are not written to the log file and levels don't match
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 45/100
- issue の種類
- 機能追加
- 明瞭さ
- おおむね明確
- 活発さ
- 活発
- 技術スタック
- java
- 領域
- backend, documentation
調査の方向性
Start by locating the App.msg(), App.warn() and App.err() definitions and searching their roughly 124 call sites for matching logger calls; the issue does not name source or test files. Read jdm-core/docs/benchmarks.md §4.1 for the warning and error semantics, then check whether existing logging tests cover event levels and duplicate lines. Done means event methods log at the specified levels, duplicate calls are removed while stack traces are retained, severity choices are reviewed, and the documentation is updated.
索引モデルが issue の本文から書いたものです。
説明
Problem
App.msg(), App.warn() and App.err() only write to the Events tab (GUI) or the console (CLI). They never write to the log file (jdiskmark-0-0.log). Callers that want an event in the log must also call Logger themselves and pick a level by hand, so:
- Events are missing from the log. Examples found while verifying #253 on Windows: the Keep Direct I/O choice, "Benchmark started/completed" and "Unable to delete test data" appeared in the Events tab but not in the log, which made the run hard to diagnose afterwards. Those specific lines were patched in #253, but any other
App.*call without a matching logger call has the same gap. - Levels don't match. Some code pairs
App.err()(red) withLevel.WARNING, e.g.DriveChecker.checkDiskSpace()and the delete failure inBatchWorker. - Lines are duplicated by hand. Many call sites log a message and then pass the same text to
App.*.
There are about 124 msg/warn/err call sites: roughly 47 App.err() and 3 App.warn(), the rest msg.
Proposed solution
-
Have the
Appevent methods log at a fixed matching level:App method Events tab Log level App.msg()normal INFOApp.warn()amber WARNINGApp.err()red SEVERE -
Remove the logger calls that sit next to an
App.*call with the same text, so lines aren't logged twice. Keep a logger call only when it adds a stack trace (e.g.LOG.log(Level.SEVERE, msg, e)), or offer anApp.err(String, Throwable)overload for that. -
Review
App.err()vsApp.warn()choices so the colour reflects the severity. benchmarks.md §4.1 describeswarnas recoverable anderras failures. -
Use a single logger (e.g.
jdiskmark.Appor anEventslogger) so event lines are easy to filter in the log.
Notes
- Verbose or high-frequency
msg()output (e.g. per-run settings dumps) may needFINEinstead ofINFOto keep the log readable. - Update
jdm-core/docs/benchmarks.md§4.1 (theApp.warn()/App.err()paragraph) to describe the logging.
- 主要言語
- Java
- スター
- 6
- フォーク
- 6
- 平均マージ
- 10時間 11分
- マージ済み PR(30日)
- 12
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
JDiskMark/jdm-java のほかの issue
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
メンテナーはふだん 1 日以内に返信
-
enhancement linux
難易度 2/5 1〜3時間 初心者へのやさしさ 64/100
メンテナーはふだん 1 日以内に返信
-
documentation linux
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
enhancement linux
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
メンテナーはふだん 1 日以内に返信
-
bug linux
難易度 3/5 1〜2日 初心者へのやさしさ 52/100
メンテナーはふだん 1 日以内に返信
JDiskMark/jdm-java の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 2 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
bloxbean/yaci-store#1445 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 64/100
-
Spare Permissionオープン
難易度 2/5 1〜3時間 初心者へのやさしさ 63/100
Etar-Group/Etar-Calendar#2234 ·
メンテナーはふだん 1 日以内に返信
-
[BUG] MCP resources-as-tools drops invocation context when listing templates対応中かも @CryoThrust が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
langchain4j/langchain4j#7320 ·
メンテナーはふだん 1 日以内に返信