Skip to content

feat: automatically delete standalone logs after clean exit - #7

Merged
Refilewski merged 1 commit into
mainfrom
feature/delete-standalone-logs-on-exit
Oct 18, 2026
Merged

Refilewski merged 1 commit into
mainfrom
feature/delete-standalone-logs-on-exit

Conversation

@Refilewski

Copy link
Copy Markdown
Owner

Goal

Automatically remove standalone AzimuthRPC's log files after normal exit. Requested to avoid leftover local log data.

Implementation

  • AzimuthRPC.log and AzimuthRPC.log.1 are deleted only after Application.Run returns normally, and after the writer is closed.
  • If startup fails, the application crashes, or Windows force-terminates it, logs are retained for debugging.
  • Optional --keep-logs CLI switch preserves logs for support/testing.
  • No recursive folder deletion; IO/access exceptions during cleanup are best-effort.
  • build.ps1 -SmokeTest now checks both bootstrap diagnostics with --keep-logs and automatic cleanup without it.
  • README documents the lifecycle and explicitly distinguishes the FH2ML native DLL.

Scope / safety

No release version bump in this PR.

@Refilewski
Refilewski merged commit 4011019 into main Oct 18, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant