2020-12-06 10:46:04 +01:00
|
|
|
// Copyright (c) Umbraco.
|
|
|
|
|
// See LICENSE for more details.
|
|
|
|
|
|
|
|
|
|
using System;
|
2021-07-05 14:27:49 +01:00
|
|
|
using System.ComponentModel;
|
2020-10-31 14:25:40 +01:00
|
|
|
|
2021-02-18 11:06:02 +01:00
|
|
|
namespace Umbraco.Cms.Core.Configuration.Models
|
2020-03-16 14:02:08 +01:00
|
|
|
{
|
2020-12-06 10:46:04 +01:00
|
|
|
/// <summary>
|
|
|
|
|
/// Typed configuration options for logging settings.
|
|
|
|
|
/// </summary>
|
2021-06-24 08:47:37 +02:00
|
|
|
[UmbracoOptions(Constants.Configuration.ConfigLogging)]
|
2020-08-20 08:24:23 +01:00
|
|
|
public class LoggingSettings
|
2020-03-16 14:02:08 +01:00
|
|
|
{
|
2021-07-05 14:27:49 +01:00
|
|
|
internal const string StaticMaxLogAge = "1.00:00:00"; // TimeSpan.FromHours(24);
|
|
|
|
|
|
2020-12-06 10:46:04 +01:00
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets a value for the maximum age of a log file.
|
|
|
|
|
/// </summary>
|
2021-07-05 14:27:49 +01:00
|
|
|
[DefaultValue(StaticMaxLogAge)]
|
|
|
|
|
public TimeSpan MaxLogAge { get; set; } = TimeSpan.Parse(StaticMaxLogAge);
|
2020-03-16 14:02:08 +01:00
|
|
|
}
|
|
|
|
|
}
|