// Copyright (c) Umbraco. // See LICENSE for more details. using System.ComponentModel; namespace Umbraco.Cms.Core.Configuration.Models; /// /// Typed configuration options for logging settings. /// [UmbracoOptions(Constants.Configuration.ConfigLogging)] public class LoggingSettings { internal const string StaticMaxLogAge = "1.00:00:00"; // TimeSpan.FromHours(24); internal const string StaticDirectory = Constants.SystemDirectories.LogFiles; /// /// Gets or sets a value for the maximum age of a log file. /// /// /// The maximum log age. /// [DefaultValue(StaticMaxLogAge)] public TimeSpan MaxLogAge { get; set; } = TimeSpan.Parse(StaticMaxLogAge); /// /// Gets or sets the folder to use for log files. /// /// /// The directory. /// [DefaultValue(StaticDirectory)] public string Directory { get; set; } = StaticDirectory; }