Search Results for

    Show / Hide Table of Contents
    View Source

    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 Source

    LoggingConfiguration(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.

    View Source

    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 Source

    DefaultLogFileNameFormat

    The default log file name format.

    Declaration
    public const string DefaultLogFileNameFormat = "UmbracoTraceLog.{0}..json"
    Field Value
    Type Description
    System.String
    View Source

    DefaultLogFileNameFormatArguments

    The default log file name format arguments.

    Declaration
    public const string DefaultLogFileNameFormatArguments = "MachineName"
    Field Value
    Type Description
    System.String
    View Source

    SupportedFileNameFormatArguments

    The collection of supported file name format arguments.

    Declaration
    public static readonly string[] SupportedFileNameFormatArguments
    Field Value
    Type Description
    System.String[]

    Properties

    View Source

    LogDirectory

    Gets the physical path where logs are stored.

    Declaration
    public string LogDirectory { get; }
    Property Value
    Type Description
    System.String
    View Source

    LogFileNameFormat

    Gets the file name format for the log files.

    Declaration
    public string LogFileNameFormat { get; }
    Property Value
    Type Description
    System.String

    Methods

    View Source

    GetLogFileNameFormatArguments()

    Gets the file name format arguments for the log files.

    Declaration
    public string[] GetLogFileNameFormatArguments()
    Returns
    Type Description
    System.String[]
    • Improve this Doc
    • View Source
    In This Article
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX