Table of Contents

Class SpecialLogSourceData

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

Represents configuration settings for a special LogSource class.

public class SpecialLogSourceData
Inheritance
SpecialLogSourceData
Inherited Members
Extension Methods

Constructors

SpecialLogSourceData()

Initializes a new instance of the SpecialLogSourceData class.

public SpecialLogSourceData()

SpecialLogSourceData(string)

Initializes a new instance of the SpecialLogSourceData class with a name.

public SpecialLogSourceData(string name)

Parameters

name string

The name of the special log source.

SpecialLogSourceData(string, SourceLevels, bool, params TraceListener[])

Initializes a new instance of the SpecialLogSourceData class with the specified name, level, and options.

public SpecialLogSourceData(string name, SourceLevels level, bool autoFlush, params TraceListener[] traceListeners)

Parameters

name string

The name of the special log source.

level SourceLevels

The filtering level of the special log source.

autoFlush bool

true to enable auto-flush; otherwise, false.

traceListeners TraceListener[]

One or more TraceListener objects.

Properties

AutoFlush

Gets or sets a value that indicates whether auto-flush is enabled.

public bool AutoFlush { get; set; }

Property Value

bool

Level

Gets or sets the event type filtering level.

public SourceLevels Level { get; set; }

Property Value

SourceLevels

Listeners

Gets a collection of TraceListener objects.

public ICollection<TraceListener> Listeners { get; }

Property Value

ICollection<TraceListener>

Name

Gets or sets the name of the special log source.

public string Name { get; set; }

Property Value

string