using System.Collections.Generic;
using System.Text.RegularExpressions;
public static void Main(string[] args)
private static void MyMethod()
throw new Exception("big problem");
var className = this.GetType().Name;
var methodName = System.Reflection.MethodBase.GetCurrentMethod().Name;
string logString = $"{className}.{methodName}()";