Exemple #1
0
        internal static string ProviderHasNotBeenInitializedCorrectlyCallAnOverloadedConstructor(
            LoggingProviderBase provider)
        {
            string name = GetShortTypeNameForOwnTypes(provider.GetType());

            // Note that this message is returned in the case that initialize hasn't been called. Therefore
            // the provider's Name property will be null and supplying it to the message is useless.
            return(GetString("ProviderHasNotBeenInitializedCorrectlyCallAnOverloadedConstructor", name));
        }
Exemple #2
0
 // Exception messages for LoggingProviderBase class
 internal static string InvalidFallbackProviderPropertyInConfig(string sectionName,
                                                                LoggingProviderBase provider)
 {
     return(GetString("InvalidFallbackProviderPropertyInConfig", sectionName,
                      provider.GetType().FullName, provider.Name, provider.FallbackProviderName));
 }