Exemplo n.º 1
0
        /// <summary>
        /// Handles the Configuring event of the Log control.
        /// </summary>
        /// <param name="sender">The source of the event.</param>
        /// <param name="e">The <see cref="LogConfiguringEventArgs"/> instance containing the event data.</param>
        private static void Log_Configuring(object sender, LogConfiguringEventArgs e)
        {
            var defaultConfigurator = ObjectFactory.Resolve <ISitefinityLogCategoryConfigurator>();
            var customConfigurator  = new RaygunConfigurator(defaultConfigurator, ConfigurationPolicy.ErrorLog);

            ObjectFactory.Container.RegisterInstance <ISitefinityLogCategoryConfigurator>(customConfigurator);
        }
 private static void Log_Configuring(object sender, LogConfiguringEventArgs e)
 {
     //ObjectFactory.Container.RegisterInstance<ISitefinityLogCategoryConfigurator>(new DfcConfigurator());
 }