Table of Contents

Class CustomTraceListenerData

Namespace
Microsoft.Practices.EnterpriseLibrary.Logging.Configuration
Assembly
Microsoft.Practices.EnterpriseLibrary.Logging.dll

Configuration object for custom trace listenrs.

public class CustomTraceListenerData : BasicCustomTraceListenerData, IHelperAssistedCustomConfigurationData<BasicCustomTraceListenerData>, ICustomProviderData
Inheritance
CustomTraceListenerData
Implements
IHelperAssistedCustomConfigurationData<BasicCustomTraceListenerData>
ICustomProviderData
Inherited Members

Constructors

CustomTraceListenerData()

Initializes with default values.

public CustomTraceListenerData()

CustomTraceListenerData(string, string, string, TraceOptions)

Initializes with name and fully qualified type name of the provider type.

public CustomTraceListenerData(string name, string typeName, string initData, TraceOptions traceOutputOptions)

Parameters

name string
typeName string
initData string
traceOutputOptions TraceOptions

CustomTraceListenerData(string, Type, string)

Initializes with name and provider type.

public CustomTraceListenerData(string name, Type type, string initData)

Parameters

name string
type Type
initData string

CustomTraceListenerData(string, Type, string, TraceOptions)

Initializes with name and provider type.

public CustomTraceListenerData(string name, Type type, string initData, TraceOptions traceOutputOptions)

Parameters

name string
type Type
initData string
traceOutputOptions TraceOptions

Properties

Formatter

Gets or sets the name of the formatter. Can be null.

public string Formatter { get; set; }

Property Value

string

TypeName

[Browsable(true)]
public override string TypeName { get; set; }

Property Value

string

Methods

CoreBuildTraceListener(LoggingSettings)

Builds the TraceListener object represented by this configuration object.

protected override TraceListener CoreBuildTraceListener(LoggingSettings settings)

Parameters

settings LoggingSettings

The logging configuration settings.

Returns

TraceListener

A trace listener.

CreateHelper()

Creates the helper that enapsulates the configuration properties management.

protected override CustomProviderDataHelper<BasicCustomTraceListenerData> CreateHelper()

Returns

CustomProviderDataHelper<BasicCustomTraceListenerData>