Sha256: 2e755e1fc47426357cc59f7cf93dcd9cdc9f2b3c51d2199f75ec8ac229216785
Contents?: true
Size: 638 Bytes
Versions: 3
Compression:
Stored size: 638 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"; BufferingTargetWrapper target = new BufferingTargetWrapper(); target.BufferSize = 100; 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