Skip to content

hide launch shell on windows and introduce rotating logs #155

@jamesmarkchan

Description

@jamesmarkchan

windows currently shows the terminal mainly so we can see the terminal output. for the production release we should hide this and introduce logging w rotation so if a crash or error were to occur we could diagnose it,

Portable (run from a zip archive extracted to a runtime folder

./logs simple and within the app rt root.

windows installer:

%LOCALAPPDATA%

example:

C:\Users\<Username>\AppData\Local\JDiskMark\logs\

avoid:

  1. %APPDATA%\Roaming - do not want any cloud sync
  2. %TEMP% - this is not expected to persist

linux installers

~/.local/state/jdiskmark/logs/

we're not a system service so we would not use /var/log/jdiskmark.log

String xdgState = System.getenv("XDG_STATE_HOME");
String logDir;
if (xdgState != null && !xdgState.isEmpty()) {
    logDir = xdgState + "/jdiskmark/logs";
} else {
    logDir = System.getProperty("user.home") + "/.local/state/jdiskmark/logs";
}

macos installers

~/Library/Logs/jdiskmark/

optional: introduce a backchannel to send error reports back to our web portal so we can fix bugs in future releases.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request
    No fields configured for Feature.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions