Click or drag to resize

LogManagerGetLogger Method

Gets the specified named logger.

Namespace:  NLog
Assembly:  NLog (in NLog.dll) Version: 5.5.0+1873145cbc26e0312d9481234d69ce7dc68aac4e
Syntax
public static 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 aren't guaranteed to return the same logger reference.
See Also