NLog.NullLogger public sealed class NullLogger : Logger It works as a normal Logger but it discards all messages which an application requests to be logged. It effectively implements the "Null Object" pattern for Logger objects. Documentation public NullLogger(LogFactory factory) Initializes a new instance of NullLogger.