154 references to Log
Templates.Tests (154)
src\Shared\CertificateGeneration\CertificateManager.cs (75)
87Log.ListCertificatesStart(location, storeName); 98if (Log.IsEnabled()) 100Log.DescribeFoundCertificates(ToCertificateDescription(matchingCertificates)); 107Log.CheckCertificatesValidity(); 114if (Log.IsEnabled()) 117Log.DescribeValidCertificates(ToCertificateDescription(validCertificates)); 118Log.DescribeInvalidCertificates(ToCertificateDescription(invalidCertificates)); 132Log.ListCertificatesEnd(); 137if (Log.IsEnabled()) 139Log.ListCertificatesError(e.ToString()); 202if (Log.IsEnabled()) 205Log.FilteredCertificates(ToCertificateDescription(filteredCertificates)); 206Log.ExcludedCertificates(ToCertificateDescription(excludedCertificates)); 228if (Log.IsEnabled()) 230Log.CorrectCertificateStateStart(GetDescription(candidate)); 233Log.CorrectCertificateStateEnd(); 237if (Log.IsEnabled()) 239Log.CorrectCertificateStateError(e.ToString()); 253if (Log.IsEnabled()) 255Log.ValidCertificatesFound(ToCertificateDescription(certificates)); 258if (Log.IsEnabled()) 260Log.SelectedCertificate(GetDescription(certificate)); 267Log.NoValidCertificatesFound(); 270Log.CreateDevelopmentCertificateStart(); 276if (Log.IsEnabled()) 278Log.CreateDevelopmentCertificateError(e.ToString()); 283Log.CreateDevelopmentCertificateEnd(); 291Log.SaveCertificateInStoreError(e.ToString()); 300if (Log.IsEnabled()) 302Log.CorrectCertificateStateStart(GetDescription(certificate)); 305Log.CorrectCertificateStateEnd(); 309if (Log.IsEnabled()) 311Log.CorrectCertificateStateError(e.ToString()); 339if (Log.IsEnabled()) 341Log.ExportCertificateError(e.ToString()); 402Log.ImportCertificateMissingFile(certificatePath); 409if (Log.IsEnabled()) 411Log.ImportCertificateExistingCertificates(ToCertificateDescription(certificates)); 419Log.LoadCertificateStart(certificatePath); 421if (Log.IsEnabled()) 423Log.LoadCertificateEnd(GetDescription(certificate)); 428if (Log.IsEnabled()) 430Log.LoadCertificateError(e.ToString()); 440if (Log.IsEnabled()) 442Log.NoHttpsDevelopmentCertificate(GetDescription(certificate)); 453if (Log.IsEnabled()) 455Log.SaveCertificateInStoreError(e.ToString()); 468if (Log.IsEnabled()) 471Log.FilteredCertificates(ToCertificateDescription(filteredCertificates)); 472Log.ExcludedCertificates(ToCertificateDescription(excludedCertificates)); 504if (Log.IsEnabled()) 506Log.ExportCertificateStart(GetDescription(certificate), path, includePrivateKey); 511Log.NoPasswordForCertificate(); 517Log.CreateExportCertificateDirectory(targetDirectoryPath); 583catch (Exception e) when (Log.IsEnabled()) 585Log.ExportCertificateError(e.ToString()); 595Log.WriteCertificateToDisk(path); 606catch (Exception ex) when (Log.IsEnabled()) 608Log.WriteCertificateToDiskError(ex.ToString()); 623Log.WritePemKeyToDisk(keyPath); 634catch (Exception ex) when (Log.IsEnabled()) 636Log.WritePemKeyToDiskError(ex.ToString()); 701if (Log.IsEnabled()) 703Log.SaveCertificateInStoreStart(GetDescription(certificate), name, location); 708Log.SaveCertificateInStoreEnd(); 716if (Log.IsEnabled()) 718Log.TrustCertificateStart(GetDescription(certificate)); 721Log.TrustCertificateEnd(); 724catch (Exception ex) when (Log.IsEnabled()) 726Log.TrustCertificateError(ex.ToString()); 819if (Log.IsEnabled()) 821Log.RemoveCertificateFromUserStoreStart(GetDescription(certificate)); 824Log.RemoveCertificateFromUserStoreEnd(); 826catch (Exception ex) when (Log.IsEnabled()) 828Log.RemoveCertificateFromUserStoreError(ex.ToString());
src\Shared\CertificateGeneration\MacOSCertificateManager.cs (26)
91Log.MacOSCertificateAlreadyTrusted(); 100if (Log.IsEnabled()) 102Log.MacOSTrustCommandStart($"{MacOSTrustCertificateCommandLine} {MacOSTrustCertificateCommandLineArguments}{tmpFile}"); 109Log.MacOSTrustCommandError(process.ExitCode); 113Log.MacOSTrustCommandEnd(); 146Log.MacOSAddCertificateToUserProfileDirError(candidate.Thumbprint, ex.Message); 200Log.MacOSRemoveCertificateTrustRuleStart(GetDescription(certificate)); 219Log.MacOSRemoveCertificateTrustRuleError(process.ExitCode); 222Log.MacOSRemoveCertificateTrustRuleEnd(); 252if (Log.IsEnabled()) 254Log.MacOSRemoveCertificateFromKeyChainStart(keychain, GetDescription(certificate)); 264Log.MacOSRemoveCertificateFromKeyChainError(process.ExitCode); 271Log.MacOSRemoveCertificateFromKeyChainEnd(); 315if (Log.IsEnabled()) 317Log.MacOSAddCertificateToUserProfileDirStart(MacOSUserKeychain, GetDescription(certificate)); 327Log.MacOSAddCertificateToUserProfileDirError(certificate.Thumbprint, ex.Message); 330Log.MacOSAddCertificateToKeyChainEnd(); 331Log.MacOSAddCertificateToUserProfileDirEnd(); 353if (Log.IsEnabled()) 355Log.MacOSAddCertificateToKeyChainStart(MacOSUserKeychain, GetDescription(certificate)); 365Log.MacOSAddCertificateToKeyChainError(process.ExitCode, output); 370Log.MacOSAddCertificateToKeyChainEnd(); 436Log.MacOSDiskStoreDoesNotExist(); 450Log.MacOSFileIsNotAValidCertificate(file); 471Log.MacOSRemoveCertificateFromUserProfileDirError(certificate.Thumbprint, ex.Message); 488Log.DirectoryPermissionsNotSecure(dirInfo.FullName);
src\Shared\CertificateGeneration\UnixCertificateManager.cs (46)
59Log.UnixOpenSslCertificateDirectoryOverrideIgnored(OpenSslCertDirectoryOverrideVariableName); 76Log.UnixNotTrustedByDotnet(); 86Log.UnixNotTrustedByOpenSsl(OpenSslCertificateDirectoryVariableName); 113Log.UnixNotTrustedByOpenSsl(OpenSslCertificateDirectoryVariableName); 124Log.UnixMissingCertUtilCommand(CertUtilCommand); 138Log.UnixNotTrustedByNss(nssDb.Path, nssDb.IsFirefox ? BrowserFamilyFirefox : BrowserFamilyChromium); 203Log.UnixDotnetTrustSucceeded(); 209Log.UnixDotnetTrustException(ex.Message); 234Log.UnixNotOverwritingCertificate(certPath); 243Log.UnixNotOverwritingCertificate(certPath); 269Log.UnixMissingOpenSslCommand(OpenSslCommand); 274Log.UnixOpenSslTrustSucceeded(); 280Log.UnixOpenSslTrustFailed(); 290Log.UnixMissingCertUtilCommand(CertUtilCommand); 300Log.UnixNssDbTrustSucceeded(nssDb.Path); 307Log.UnixNssDbTrustFailedWithProbableConflict(nssDb.Path, nssDb.IsFirefox ? BrowserFamilyFirefox : BrowserFamilyChromium); 313Log.UnixNssDbTrustFailed(nssDb.Path, nssDb.IsFirefox ? BrowserFamilyFirefox : BrowserFamilyChromium); 324Log.UnixTrustPartiallySucceeded(); 346Log.UnixSuggestSettingEnvironmentVariable(prettyCertDir, Path.Combine(openSslDir, "certs"), OpenSslCertificateDirectoryVariableName); 350Log.UnixSuggestSettingEnvironmentVariableWithoutExample(prettyCertDir, OpenSslCertificateDirectoryVariableName); 374Log.UnixDotnetUntrustException(ex.Message); 401Log.UnixMissingOpenSslCommand(OpenSslCommand); 406Log.UnixOpenSslUntrustSucceeded(); 411Log.UnixOpenSslUntrustFailed(); 417Log.UnixOpenSslUntrustSkipped(certPath); 426Log.UnixMissingCertUtilCommand(CertUtilCommand); 434Log.UnixNssDbUntrustSucceeded(nssDb.Path); 438Log.UnixNssDbUntrustFailed(nssDb.Path); 464Log.DirectoryPermissionsNotSecure(dirInfo.FullName); 577Log.UnixNssDbCheckException(nssDb.Path, ex.Message); 606Log.UnixNssDbAdditionException(nssDb.Path, ex.Message); 636Log.UnixNssDbRemovalException(nssDb.Path, ex.Message); 650Log.UnixNoFirefoxProfilesFound(firefoxDirectory); 656Log.UnixFirefoxProfileEnumerationException(firefoxDirectory, ex.Message); 666Log.UnixOpenSslCertificateDirectoryOverridePresent(OpenSslCertDirectoryOverrideVariableName); 682Log.UnixCertificateFileDeletionException(certPath, ex.Message); 698Log.UnixNssDbOverridePresent(NssDbOverrideVariableName); 708Log.UnixNssDbDoesNotExist(nssDb, NssDbOverrideVariableName); 736Log.UnixHomeDirectoryDoesNotExist(homeDirectory, Environment.UserName); 802Log.UnixOpenSslVersionFailed(); 809Log.UnixOpenSslVersionParsingFailed(); 818Log.UnixOpenSslVersionException(ex.Message); 846Log.UnixOpenSslHashFailed(certificatePath); 855Log.UnixOpenSslHashException(certificatePath, ex.Message); 927Log.UnixOpenSslRehashTooManyHashes(cert.FullName, hash, MaxHashCollisions); 934Log.UnixOpenSslRehashException(ex.Message);
src\Shared\CertificateGeneration\WindowsCertificateManager.cs (7)
81Log.WindowsCertificateAlreadyTrusted(); 87Log.WindowsAddCertificateToRootStore(); 96Log.WindowsCertificateTrustCanceled(); 103Log.WindowsRemoveCertificateFromRootStoreStart(); 114Log.WindowsRemoveCertificateFromRootStoreNotFound(); 117Log.WindowsRemoveCertificateFromRootStoreEnd(); 163Log.DirectoryPermissionsNotSecure(dirInfo.FullName);