App.msg/warn/err events are not written to the log file and levels don't match
Maintainer antworten meist innerhalb von 1 Tag
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Anfängerfreundlichkeit
- 45/100
- Issue-Typ
- Feature
- Klarheit
- Größtenteils klar
- Aktivitätsstatus
- Aktiv
- Tech-Stack
- java
- Bereich
- backend, documentation
Rechercherichtung
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.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
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.
- Vorherrschende Sprache
- Java
- Sterne
- 6
- Forks
- 6
- Ø Merge
- 10 Std. 11 Min.
- Gemergte PRs (30 T.)
- 12
Entwicklungsumgebung
- Kein Dockerfile und keine Docker-Compose-Datei
- Keine Pull-Request-Vorlage
- Beitragsleitfaden lesen
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus JDiskMark/jdm-java
-
bug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 65/100
Maintainer antworten meist innerhalb von 1 Tag
-
enhancement linux
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 64/100
Maintainer antworten meist innerhalb von 1 Tag
-
documentation linux
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
Maintainer antworten meist innerhalb von 1 Tag
-
enhancement linux
Schwierigkeit 5/5 Über eine Woche Anfängerfreundlichkeit 35/100
Maintainer antworten meist innerhalb von 1 Tag
-
bug linux
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 52/100
Maintainer antworten meist innerhalb von 1 Tag
Alle Issues in JDiskMark/jdm-java
Ähnliche Issues
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
Maintainer antworten meist innerhalb von 2 Tagen
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
bloxbean/yaci-store#1445 ·
Maintainer antworten meist innerhalb von 1 Tag
-
图片灯箱过长的话底部carousel滑动没有惯性Offen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 64/100
-
Spare PermissionOffen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 63/100
Etar-Group/Etar-Calendar#2234 ·
Maintainer antworten meist innerhalb von 1 Tag
-
[BUG] MCP resources-as-tools drops invocation context when listing templatesEvtl. vergeben @CryoThrust hat das heute übernommen. Offen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
langchain4j/langchain4j#7320 ·
Maintainer antworten meist innerhalb von 1 Tag