private static void Configure() { Type type = typeof(Logger); string path = AppDomain.CurrentDomain.BaseDirectory; FileInfo configFile = new FileInfo(Path.Combine(path, ConfigFileName)); XmlConfigurator.ConfigureAndWatch(configFile); _log = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType); _log.ToString(); }