Sha256: 7bb3c2ce5c698e5f54c616446f26b0648d465a0dbfe07815c8492503b20f5088

Contents?: true

Size: 440 Bytes

Versions: 3

Compression:

Stored size: 440 Bytes

Contents

using System;

using NLog;
using NLog.Targets;

class Example
{
    static void Main(string[] args)
    {
        NullTarget target = new NullTarget();
        target.Layout = "${message}";
        target.FormatMessage = true;

        NLog.Config.SimpleConfigurator.ConfigureForTargetLogging(target, LogLevel.Debug);

        Logger logger = LogManager.GetLogger("Example");
        logger.Debug("log message");
    }
}

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
nlog-1.0.0.505.20100822 docs/examples/targets/Configuration API/Null/Simple/Example.cs
nlog-1.0.0.505 docs/examples/targets/Configuration API/Null/Simple/Example.cs
nlog-1.0.0.505-mswin32 docs/examples/targets/Configuration API/Null/Simple/Example.cs