Table of Contents

Class LogWriterStructureHolder

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

This type supports the Enterprise Library infrastructure and is not intended to be used directly from your code. Holds the collaborators of a LogWriter to allow for an easy replacement should configuration change.

public class LogWriterStructureHolder
Inheritance
LogWriterStructureHolder
Inherited Members

Constructors

LogWriterStructureHolder(IEnumerable<ILogFilter>, IDictionary<string, LogSource>, LogSource, LogSource, LogSource, string, bool, bool, bool)

This method supports the Enterprise Library infrastructure and is not intended to be used directly from your code. Initializes a new instance of the LogWriterStructureHolder class.

public LogWriterStructureHolder(IEnumerable<ILogFilter> filters, IDictionary<string, LogSource> traceSources, LogSource allEventsTraceSource, LogSource notProcessedTraceSource, LogSource errorsTraceSource, string defaultCategory, bool tracingEnabled, bool logWarningsWhenNoCategoriesMatch, bool revertImpersonation)

Parameters

filters IEnumerable<ILogFilter>

The collection of filters to use when processing an entry.

traceSources IDictionary<string, LogSource>

The trace sources to dispatch entries to.

allEventsTraceSource LogSource

The special LogSource to which all log entries should be logged.

notProcessedTraceSource LogSource

The special LogSource to which log entries with at least one non-matching category should be logged.

errorsTraceSource LogSource

The special LogSource to which internal errors must be logged.

defaultCategory string

The default category to set when entry categories list of a log entry is empty.

tracingEnabled bool

The tracing status.

logWarningsWhenNoCategoriesMatch bool

true if warnings should be logged when a non-matching category is found.

revertImpersonation bool

true if impersonation should be reverted while logging.

LogWriterStructureHolder(IEnumerable<ILogFilter>, IEnumerable<string>, IEnumerable<LogSource>, LogSource, LogSource, LogSource, string, bool, bool, bool)

This constructor supports the Enterprise Library infrastructure and is not intended to be used directly from your code. Initializes a new instance of the LogWriterStructureHolder class.

public LogWriterStructureHolder(IEnumerable<ILogFilter> filters, IEnumerable<string> traceSourceNames, IEnumerable<LogSource> traceSources, LogSource allEventsTraceSource, LogSource notProcessedTraceSource, LogSource errorsTraceSource, string defaultCategory, bool tracingEnabled, bool logWarningsWhenNoCategoriesMatch, bool revertImpersonation)

Parameters

filters IEnumerable<ILogFilter>

The collection of filters to use when processing an entry.

traceSourceNames IEnumerable<string>

Names of the trace sources to dispatch entries to.

traceSources IEnumerable<LogSource>

The trace sources to dispatch entries to.

allEventsTraceSource LogSource

The special LogSource to which all log entries should be logged.

notProcessedTraceSource LogSource

The special LogSource to which log entries with at least one non-matching category should be logged.

errorsTraceSource LogSource

The special LogSource to which internal errors must be logged.

defaultCategory string

The default category to set when entry categories list of a log entry is empty.

tracingEnabled bool

The tracing status.

logWarningsWhenNoCategoriesMatch bool

true if warnings should be logged when a non-matching category is found.

revertImpersonation bool

true if impersonation should be reverted while logging.

Properties

AllEventsTraceSource

This property supports the Enterprise Library infrastructure and is not intended to be used directly from your code.

public LogSource AllEventsTraceSource { get; }

Property Value

LogSource

DefaultCategory

This property supports the Enterprise Library infrastructure and is not intended to be used directly from your code.

public string DefaultCategory { get; }

Property Value

string

ErrorsTraceSource

This property supports the Enterprise Library infrastructure and is not intended to be used directly from your code.

public LogSource ErrorsTraceSource { get; }

Property Value

LogSource

Filters

This property supports the Enterprise Library infrastructure and is not intended to be used directly from your code.

public IEnumerable<ILogFilter> Filters { get; }

Property Value

IEnumerable<ILogFilter>

LogWarningsWhenNoCategoriesMatch

This property supports the Enterprise Library infrastructure and is not intended to be used directly from your code.

public bool LogWarningsWhenNoCategoriesMatch { get; }

Property Value

bool

NotProcessedTraceSource

This property supports the Enterprise Library infrastructure and is not intended to be used directly from your code.

public LogSource NotProcessedTraceSource { get; }

Property Value

LogSource

RevertImpersonation

This property supports the Enterprise Library infrastructure and is not intended to be used directly from your code.

public bool RevertImpersonation { get; }

Property Value

bool

TraceSources

This property supports the Enterprise Library infrastructure and is not intended to be used directly from your code.

public IDictionary<string, LogSource> TraceSources { get; }

Property Value

IDictionary<string, LogSource>

TracingEnabled

This property supports the Enterprise Library infrastructure and is not intended to be used directly from your code.

public bool TracingEnabled { get; }

Property Value

bool