Class LoggingSettings
Typed configuration options for logging settings.
Inheritance
System.Object
Namespace: Umbraco.Cms.Core.Configuration.Models
Assembly: Umbraco.Core.dll
Syntax
public class LoggingSettings
Properties
View SourceDirectory
Gets or sets the folder to use for log files.
Declaration
public string Directory { get; set; }
Property Value
Type | Description |
---|---|
System.String | The directory. |
FileNameFormat
Gets or sets the file name format to use for log files.
Declaration
public string FileNameFormat { get; set; }
Property Value
Type | Description |
---|---|
System.String | The file name format. |
FileNameFormatArguments
Gets or sets the file name format arguments to use for log files.
Declaration
public string FileNameFormatArguments { get; set; }
Property Value
Type | Description |
---|---|
System.String | The file name format arguments as a comma delimited string of accepted values. |
Remarks
Accepted values for format arguments are: MachineName, EnvironmentName.
MaxLogAge
Gets or sets a value for the maximum age of a log file.
Declaration
public TimeSpan MaxLogAge { get; set; }
Property Value
Type | Description |
---|---|
TimeSpan | The maximum log age. |