using System.Reflection; using log4net; namespace Wox.Helper { public class Log { private static ILog fileLogger = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); public static void Error(string msg) { fileLogger.Error(msg); } } }