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
LogSourceThe special LogSource to which all log entries should be logged.
notProcessedTraceSource
LogSourceThe special LogSource to which log entries with at least one non-matching category should be logged.
errorsTraceSource
LogSourceThe special LogSource to which internal errors must be logged.
defaultCategory
stringThe default category to set when entry categories list of a log entry is empty.
tracingEnabled
boolThe tracing status.
logWarningsWhenNoCategoriesMatch
booltrue if warnings should be logged when a non-matching category is found.
revertImpersonation
booltrue 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
LogSourceThe special LogSource to which all log entries should be logged.
notProcessedTraceSource
LogSourceThe special LogSource to which log entries with at least one non-matching category should be logged.
errorsTraceSource
LogSourceThe special LogSource to which internal errors must be logged.
defaultCategory
stringThe default category to set when entry categories list of a log entry is empty.
tracingEnabled
boolThe tracing status.
logWarningsWhenNoCategoriesMatch
booltrue if warnings should be logged when a non-matching category is found.
revertImpersonation
booltrue 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
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
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
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
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
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
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
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
TracingEnabled
This property supports the Enterprise Library infrastructure and is not intended to be used directly from your code.
public bool TracingEnabled { get; }