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
stringThe name for the log source.
level
SourceLevelsThe level for the log source.
autoFlush
booltraceListeners
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
Level
Gets or sets the event type filtering level.
public SourceLevels Level { get; set; }
Property Value
Listeners
Gets a collection of TraceListener objects.
public ICollection<TraceListener> Listeners { get; }
Property Value
Name
Gets or sets the name of the log source.
public string Name { get; set; }