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
stringThe 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
stringThe name of the special log source.
level
SourceLevelsThe filtering level of the special 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 special log source.
public string Name { get; set; }