Class LoggingConfiguration
Implements ILoggingConfiguration to provide configuration for logging to files.
Inheritance
object
Namespace: Umbraco.Cms.Core.Logging
Assembly: Umbraco.Core.dll
Syntax
public class LoggingConfiguration : ILoggingConfiguration
Constructors
View SourceLoggingConfiguration(string)
Initializes a new instance of the LoggingConfiguration class with the default log file name format and arguments.
Declaration
public LoggingConfiguration(string logDirectory)
Parameters
| Type | Name | Description |
|---|---|---|
| string | logDirectory | The log file directory. |
LoggingConfiguration(string, string, string)
Initializes a new instance of the LoggingConfiguration class.
Declaration
public LoggingConfiguration(string logDirectory, string logFileNameFormat, string logFileNameFormatArguments)
Parameters
| Type | Name | Description |
|---|---|---|
| string | logDirectory | The log file directory. |
| string | logFileNameFormat | The log file name format. |
| string | logFileNameFormatArguments | The log file name format arguments as a comma delimited string. |
Fields
View SourceDefaultLogFileNameFormat
The default log file name format.
Declaration
public const string DefaultLogFileNameFormat = "UmbracoTraceLog.{0}..json"
Field Value
| Type | Description |
|---|---|
| string |
DefaultLogFileNameFormatArguments
The default log file name format arguments.
Declaration
public const string DefaultLogFileNameFormatArguments = "MachineName"
Field Value
| Type | Description |
|---|---|
| string |
SupportedFileNameFormatArguments
The collection of supported file name format arguments.
Declaration
public static readonly string[] SupportedFileNameFormatArguments
Field Value
| Type | Description |
|---|---|
| string[] |
Properties
View SourceLogDirectory
Gets the physical path where logs are stored.
Declaration
public string LogDirectory { get; }
Property Value
| Type | Description |
|---|---|
| string |
LogFileNameFormat
Gets the file name format for the log files.
Declaration
public string LogFileNameFormat { get; }
Property Value
| Type | Description |
|---|---|
| string |
Methods
View SourceGetLogFileNameFormatArguments()
Gets the file name format arguments for the log files.
Declaration
public string[] GetLogFileNameFormatArguments()
Returns
| Type | Description |
|---|---|
| string[] |