Initial version

This commit is contained in:
2026-02-28 07:19:29 +01:00
parent b5f4af6930
commit 3f3356eb4a
183 changed files with 90406 additions and 63 deletions

View File

@@ -0,0 +1,25 @@
// This file is part of the EonaCat project(s) which is released under the Apache License.
// See the LICENSE file or go to https://EonaCat.com/License for full license details.
namespace EonaCat.LogStack.EonaCatLogStackCore.Policies
{
/// <summary>Combined retention policy: delete rolled files exceeding any threshold.</summary>
public sealed class FileRetentionPolicy
{
/// <summary>Maximum number of rolled archive files to keep (0 = unlimited).</summary>
public int MaxRolledFiles { get; set; }
/// <summary>Maximum total size of all archives in bytes (0 = unlimited).</summary>
public long MaxTotalArchiveBytes { get; set; }
/// <summary>Maximum age of any archive file in days (0 = unlimited).</summary>
public int MaxAgeDays { get; set; }
public FileRetentionPolicy()
{
MaxRolledFiles = 10;
MaxTotalArchiveBytes = 0;
MaxAgeDays = 0;
}
}
}