using Microsoft.Extensions.DiagnosticAdapter; using System; using System.Collections.Generic; using System.Data; using System.Linq; using System.Text; using System.Threading.Tasks; namespace LogStudy.DiagnosticLog { public class DiagnosticSourceCollector { [DiagnosticName("CommandExcute")] public void OnCommandExcute(string commandType, string commandText) { Console.WriteLine($"Event Name: OnCommandExcute"); Console.WriteLine($"CommandType:{commandType}"); Console.WriteLine($"CommandText:{commandText}"); } } }