Table of Contents

Class NullLogWriterFactory

Namespace
AnyProtocol.Logging.Abstraction
Assembly
AnyProtocol.Logging.Abstraction.dll

Provides a safe no-op logging implementation for applications without a logger.

public sealed class NullLogWriterFactory : ILogWriterFactory, IDisposable
Inheritance
NullLogWriterFactory
Implements
Inherited Members

Properties

Instance

Gets the shared no-op factory instance.

public static NullLogWriterFactory Instance { get; }

Property Value

NullLogWriterFactory

Methods

CreateLogWriter(string)

Creates log writer.

public ILogWriter CreateLogWriter(string categoryName)

Parameters

categoryName string

The category name.

Returns

ILogWriter

The value produced by the operation.

Dispose()

public void Dispose()