Esempio n. 1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="CounterMeasure"/> class.
 /// </summary>
 /// <param name="logger">The logger.</param>
 /// <param name="name">The name.</param>
 /// <param name="counts">The counts.</param>
 /// <param name="level">The level.</param>
 /// <param name="template">The template.</param>
 /// <param name="directWrite">if set to <c>true</c> then directly write to the log.</param>
 public CounterMeasure(ILogger logger, string name, string counts, LogEventLevel level, string template, bool directWrite = false)
 {
     _logger = logger;
     _name = name;
     _counts = counts;
     _level = level;
     _template = template;
     _directWrite = directWrite;
     _value = new AtomicLong();
 }