Skip to content

Release 2.3.1 - housekeeping: Clear-SPSLog fix and LogRetentionDays#43

Merged
luigilink merged 1 commit into
mainfrom
release/2.3.1
Jun 29, 2026
Merged

Release 2.3.1 - housekeeping: Clear-SPSLog fix and LogRetentionDays#43
luigilink merged 1 commit into
mainfrom
release/2.3.1

Conversation

@luigilink

Copy link
Copy Markdown
Owner

Fixes #42.

Fixed

  • Clear-SPSLog filter typo ($logFileName undefined -> filtered nothing meaningful). Now '*.log' default, with -Filter override. Retention 0 disables pruning.

Changed

  • New config setting LogRetentionDays (default 180, 0 disables) replaces the hardcoded value, mirroring JsonHistoryRetentionDays.

Pester 180/0, PSSA 0.

…tionDays

Clear-SPSLog filtered on an undefined $logFileName, which resolved to '*'
and worked by accident. The function now takes -Filter (default '*.log')
and honors -Retention 0 to disable pruning. New config setting
LogRetentionDays (default 180, 0 disables) replaces the hardcoded value
in the entry script, mirroring JsonHistoryRetentionDays.

Fixes #42
@github-actions

Copy link
Copy Markdown

Pester Test Results

  1 files   15 suites   1s ⏱️
 59 tests  59 ✅ 0 💤 0 ❌
181 runs  181 ✅ 0 💤 0 ❌

Results for commit d4a358c.

@luigilink luigilink merged commit 082e0a1 into main Jun 29, 2026
3 checks passed
@luigilink luigilink deleted the release/2.3.1 branch June 29, 2026 10:37
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.

2.3.1: configurable log retention + fix Clear-SPSLog filter typo

1 participant