Sha256: da2b1a902e544f3a3220c65f7a3eced0b1e28e132e5504968838f96d9bdd2f6e

Contents?: true

Size: 698 Bytes

Versions: 3

Compression:

Stored size: 698 Bytes

Contents

using System;

using NLog;
using NLog.Targets;
using NLog.Targets.Compound;
using System.Diagnostics;

class Example
{
    static void Main(string[] args)
    {
        FileTarget file1 = new FileTarget();
        file1.FileName = "${basedir}/file1.txt";

        FileTarget file2 = new FileTarget();
        file2.FileName = "${basedir}/file2.txt";

        RandomizeTarget target = new RandomizeTarget();
        target.Targets.Add(file1);
        target.Targets.Add(file2);

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