You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
647 B
C#
29 lines
647 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Diagnostics.Tracing;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace LogStudy.EventLog.Next
|
|
{
|
|
[EventSource(Name = "EventLogNext-MinEventSource")]
|
|
public class MinEventSource : EventSource
|
|
{
|
|
private MinEventSource()
|
|
{
|
|
}
|
|
|
|
public static MinEventSource Logger { get; } = new MinEventSource();
|
|
|
|
[Event(1)]
|
|
public void Log(string message, int favoriteNumber)
|
|
{
|
|
if (IsEnabled())
|
|
{
|
|
Write(Name, "===================");
|
|
}
|
|
}
|
|
}
|
|
}
|