Sha256: a6baf0700f832a0accb1b2ff461071f0e8c47f6919f17b67ea6e9a5cab58c115
Contents?: true
Size: 608 Bytes
Versions: 3
Compression:
Stored size: 608 Bytes
Contents
using NLog; using NLog.Targets; class Example { static void Main(string[] args) { NLogViewerTarget target = new NLogViewerTarget(); target.Address = "udp://localhost:4000"; NLog.Config.SimpleConfigurator.ConfigureForTargetLogging(target, LogLevel.Debug); Logger logger = LogManager.GetLogger("Example"); logger.Trace("log message 1"); logger.Debug("log message 2"); logger.Info("log message 3"); logger.Warn("log message 4"); logger.Error("log message 5"); logger.Fatal("log message 6"); } }
Version data entries
3 entries across 3 versions & 1 rubygems