NLog Logging Library

LogManager.GetLogger Method 

[This is preliminary documentation and subject to change.]

Gets the specified named logger.

[Visual Basic]
Public Shared Function GetLogger( _
   ByVal name As String _
) As Logger
[C#]
public static Logger GetLogger(
   string name
);

Parameters

name
name of the logger

Return Value

The logger reference. Multiple calls to GetLogger with the same argument aren't guaranteed to return the same logger reference.

See Also

LogManager Class | NLog Namespace