Sha256: 5110d80c65198d9fa94fba327db5db5c35a6588d492f40666d6a09ea6e69f5b9
Contents?: true
Size: 672 Bytes
Versions: 3
Compression:
Stored size: 672 Bytes
Contents
using System; using NLog; using NLog.Targets; using NLog.Win32.Targets; using System.Diagnostics; class Example { static void Main(string[] args) { PerfCounterTarget target = new PerfCounterTarget(); target.AutoCreate = true; target.CategoryName = "My category"; target.CounterName = "My counter"; target.CounterType = PerformanceCounterType.NumberOfItems32; target.InstanceName = "My instance"; 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