Table of Contents

Method Add

Namespace
Alternet.UI
Assembly
Alternet.UI.Common.dll

Add(ILogWriter)

Adds a log writer to the collection of writers.

public void Add(ILogWriter writer)

Parameters

writer ILogWriter

The ILogWriter instance to add. Cannot be null.

Exceptions

ArgumentNullException

Thrown if writer is null.

Add(Func<ILogWriter>)

Adds a log writer factory function to the collection of log writers.

public void Add(Func<ILogWriter> writerFunc)

Parameters

writerFunc Func<ILogWriter>

A function that returns an instance of ILogWriter. This function cannot be null.

Exceptions

ArgumentNullException

Thrown if writerFunc is null.