Class LoggingConfiguration
Implements ILoggingConfiguration to provide configuration for logging to files.
Inheritance
System.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 |
---|---|---|
System.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 |
---|---|---|
System.String | logDirectory | The log file directory. |
System.String | logFileNameFormat | The log file name format. |
System.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 |
---|---|
System.String |
DefaultLogFileNameFormatArguments
The default log file name format arguments.
Declaration
public const string DefaultLogFileNameFormatArguments = "MachineName"
Field Value
Type | Description |
---|---|
System.String |
SupportedFileNameFormatArguments
The collection of supported file name format arguments.
Declaration
public static readonly string[] SupportedFileNameFormatArguments
Field Value
Type | Description |
---|---|
System.String[] |
Properties
View SourceLogDirectory
Gets the physical path where logs are stored.
Declaration
public string LogDirectory { get; }
Property Value
Type | Description |
---|---|
System.String |
LogFileNameFormat
Gets the file name format for the log files.
Declaration
public string LogFileNameFormat { get; }
Property Value
Type | Description |
---|---|
System.String |
Methods
View SourceGetLogFileNameFormatArguments()
Gets the file name format arguments for the log files.
Declaration
public string[] GetLogFileNameFormatArguments()
Returns
Type | Description |
---|---|
System.String[] |