[This is preliminary documentation and is subject to change.]

Specialized LogFactory that can return instances of custom logger types.

Namespace:  NLog
Assembly:  NLog (in NLog.dll) Version: 2.0.0.0

Syntax

C#
public class LogFactory<T> : LogFactory
where T : Logger
Visual Basic (Declaration)
Public Class LogFactory(Of T As Logger) _
	Inherits LogFactory
Visual C++
generic<typename T>
where T : Logger
public ref class LogFactory : public LogFactory

Type Parameters

T
The type of the logger to be returned. Must inherit from Logger.

Inheritance Hierarchy

System..::.Object
  NLog..::.LogFactory
    NLog..::.LogFactory<(Of <(T>)>)

See Also