Class CustomTraceListenerData
- 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
stringtypeName
stringinitData
stringtraceOutputOptions
TraceOptions
CustomTraceListenerData(string, Type, string)
Initializes with name and provider type.
public CustomTraceListenerData(string name, Type type, string initData)
Parameters
CustomTraceListenerData(string, Type, string, TraceOptions)
Initializes with name and provider type.
public CustomTraceListenerData(string name, Type type, string initData, TraceOptions traceOutputOptions)
Parameters
name
stringtype
TypeinitData
stringtraceOutputOptions
TraceOptions
Properties
Formatter
Gets or sets the name of the formatter. Can be null.
public string Formatter { get; set; }
Property Value
TypeName
[Browsable(true)]
public override string TypeName { get; set; }
Property Value
Methods
CoreBuildTraceListener(LoggingSettings)
Builds the TraceListener object represented by this configuration object.
protected override TraceListener CoreBuildTraceListener(LoggingSettings settings)
Parameters
settings
LoggingSettingsThe 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>