Click or drag to resize
LogFactoryGetLoggerT Method (String)
Gets the specified named logger.

Namespace: NLog
Assembly: NLog (in NLog.dll) Version: 4.3.0
Syntax
public T GetLogger<T>(
	string name
)
where T : Logger

Parameters

name
Type: SystemString
Name of the logger.

Type Parameters

T
Type of the logger

Return Value

Type: T
The logger reference with type T. Multiple calls to GetLogger with the same argument are not guaranteed to return the same logger reference.
See Also