Sha256: e6f3c768b69a752c54c47670666578eca54de8a9fc8cffd1e7ac891cb86963ca
Contents?: true
Size: 604 Bytes
Versions: 3
Compression:
Stored size: 604 Bytes
Contents
using System; using NLog; using NLog.Targets; using NLog.Targets.Wrappers; using System.Diagnostics; class Example { static void Main(string[] args) { FileTarget wrappedTarget = new FileTarget(); wrappedTarget.FileName = "${basedir}/file.txt"; AutoFlushTargetWrapper target = new AutoFlushTargetWrapper(); target.WrappedTarget = wrappedTarget; 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