Table of Contents

Class LogSourceData

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

Represents configuration data for the LogSource class.

public class LogSourceData
Inheritance
LogSourceData
Inherited Members
Extension Methods

Constructors

LogSourceData()

Initializes a new instance of the LogSourceData class.

public LogSourceData()

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

Initializes a new instance of the LogSourceData class with the specified parameters.

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

Parameters

name string

The name for the log source.

level SourceLevels

The level for the 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 log source.

public string Name { get; set; }

Property Value

string