Share via


LoggingConfiguration Members

Include Protected Members
Include Inherited Members

The LoggingConfiguration type exposes the following members.

Constructors

  Name Description
Public method LoggingConfiguration
Initializes a new instance of the LoggingConfiguration class.

Methods

  Name Description
Public method AddLogSource(String)
Adds a new log source with the specified name.
Public method AddLogSource(String, SourceLevels)
Adds a new log source with the specified name and level.
Public method AddLogSource(String, array<TraceListener[])
Adds a new log source with the specified name and trace listeners.
Public method AddLogSource(String, SourceLevels, Boolean)
Adds a new log source with the specified name and level, and optionally enables auto-flush.
Public method AddLogSource(String, SourceLevels, Boolean, array<TraceListener[])
Adds a new log source with the specified name, level, and trace listeners, and optionally enables auto-flush.
Public method Equals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected method Finalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public method GetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public method GetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected method MemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public method ToString
Returns a string that represents the current object.
(Inherited from Object.)

Properties

  Name Description
Public property AllTraceListeners
Gets a collection of all the TraceListener objects used in this configuration.
Public property DefaultSource
Gets or sets the default source name.
Public property Filters
Gets the list of all available ILogFilter objects.
Public property IsLoggingEnabled
Gets or sets a value that indicates whether logging is enabled.
Public property IsTracingEnabled
Gets or sets a value that indicates whether tracing is enabled.
Public property LogSources
Gets the collection of all available LogSource objects.
Public property LogWarningsWhenNoCategoriesMatch
Gets or sets a value that indicates whether to log warnings when no matching categories are found.
Public property SpecialSources
Gets the configuration for special sources.
Public property UseImpersonation
Gets or sets a value indicating whether to use impersonation.

See Also

LoggingConfiguration Class

Microsoft.Practices.EnterpriseLibrary.Logging Namespace