/// <summary> /// Should be called at application startup to set up log4net /// </summary> public static void Initialise() { if (!initialised) { string configFilePath = PathUtility.CombineWithAppDomainPath("log4net.config"); if (File.Exists(configFilePath)) { XmlConfigurator.ConfigureAndWatch(new FileInfo(configFilePath)); } else { BasicConfigurator.Configure(); } AddGlobalPropertiesIfWebApp(); initialised = true; } }