Class LoggingSettings
Typed configuration options for logging settings.
Inheritance
Namespace: Umbraco.Cms.Core.Configuration.Models
Assembly: Umbraco.Core.dll
Syntax
[UmbracoOptions("Umbraco:CMS:Logging")]
public class LoggingSettings
Constructors
View SourceLoggingSettings()
Declaration
public LoggingSettings()
Properties
View SourceDirectory
Gets or sets the folder to use for log files.
Declaration
public string Directory { get; set; }
Property Value
| Type | Description |
|---|---|
| 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 |
|---|---|
| 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 |
|---|---|
| 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. |
SessionIdLogging
Gets or sets a value determining how log events are enriched with a session identifier.
Declaration
public SessionIdLoggingMode SessionIdLogging { get; set; }
Property Value
| Type | Description |
|---|---|
| SessionIdLoggingMode |
Remarks
Defaults to SessionId for backward compatibility. Set to
CookieHash or None to avoid the
blocking session-store load that resolving the actual session id incurs per request when the session is
backed by an IDistributedCache.