Sha256: b8190e8533f9f95892586f1be3861da05ef498e691beaf4d2a4eeb30551cc73a

Contents?: true

Size: 473 Bytes

Versions: 3

Compression:

Stored size: 473 Bytes

Contents

using System;

using NLog;
using NLog.Targets;

class Example
{
    static void Main(string[] args)
    {
        MessageBoxTarget target = new MessageBoxTarget();
        target.Layout = "${longdate}: ${message}";
        target.Caption = "${level} message";

        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/MessageBox/Simple/Example.cs
nlog-1.0.0.505 docs/examples/targets/Configuration API/MessageBox/Simple/Example.cs
nlog-1.0.0.505-mswin32 docs/examples/targets/Configuration API/MessageBox/Simple/Example.cs