Click or drag to resize

LogFactoryGetLogger Method (String)

Gets the specified named logger.

Namespace:  NLog
Assembly:  NLog (in NLog.dll) Version: 6.0.0+cfb73701cda54e2410b006f649f072e90daef707
Syntax
public Logger GetLogger(
	string name
)

Parameters

name
Type: SystemString
Name of the logger.

Return Value

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