/// <summary> /// Configures the logger manager with the given configuration node. /// </summary> /// <param name="configuration">The configuration.</param> /// <returns> /// <c>true</c> if successful. /// <c>false</c> if it was previously configured. /// </returns> public static bool Configure(XmlElement configuration) { if (configured) return false; XmlConfigurator.Configure(configuration); wrapperMap = new WrapperMap(new WrapperCreationHandler(WrapperCreationHandlerEx)); configured = true; return true; }
/// <summary> /// Configures the logger manager with default settings provided in the App.Config /// </summary> /// <returns> /// <c>true</c> if successful. /// <c>false</c> if it was previously configured. /// </returns> public static bool Configure() { if (configured) return false; wrapperMap = new WrapperMap(new WrapperCreationHandler(WrapperCreationHandlerEx)); configured = true; return true; }