In This Article

LoggerFactory Class

Defines a default implementation of ILoggerFactory and manages access to the default instance of ILoggerFactory to be used for logging.

public sealed class LoggerFactory : DisposableObjectBase, ILoggerFactory, IDisposable
Inheritance:
object DisposableObjectBase object
Implements:
ILoggerFactory IDisposable

Properties

DefaultInstance

The default instance of ILoggerFactory to be used.

public static ILoggerFactory DefaultInstance { get; set; }

Property Value

ILoggerFactory

Methods

Dispose(bool)

Releases the unmanaged resources used by the object and optionally releases the managed resources.

protected override void Dispose(bool disposing)
Parameter Type Description
disposing bool

true to release both managed and unmanaged resources; false to release only unmanaged resources.

Remarks

This method is called by the public Dispose() method and the Finalize method. Dispose invokes this method with the disposing parameter set to true. Finalize invokes this method with disposing set to false.

Inherited Members

Extension Methods