NLog Logging Library

LogManager.GetCurrentClassLogger Method 

[This is preliminary documentation and subject to change.]

Gets the logger named after the currently-being-initialized class.

[Visual Basic]
Public Shared Function GetCurrentClassLogger() As Logger
[C#]
public static Logger GetCurrentClassLogger();

Return Value

The logger.

Remarks

This is a slow-running method. Make sure you're not doing this in a loop.

See Also

LogManager Class | NLog Namespace