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