Sha256: c740f1e37f13a7e88055d6caa0ee307264f9398a1e30de1e8d8ef2d54ffd7cc3
Contents?: true
Size: 700 Bytes
Versions: 3
Compression:
Stored size: 700 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"; RoundRobinTarget target = new RoundRobinTarget(); 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