NLog Logging Library

LogManager.CreateNullLogger Method 

[This is preliminary documentation and subject to change.]

Creates a logger that discards all log messages.

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

Return Value

See Also

LogManager Class | NLog Namespace