159 references to Log
Templates.Blazor.Tests (159)
src\Shared\CertificateGeneration\CertificateManager.cs (75)
132
Log
.ListCertificatesStart(location, storeName);
143
if (
Log
.IsEnabled())
145
Log
.DescribeFoundCertificates(ToCertificateDescription(matchingCertificates));
152
Log
.CheckCertificatesValidity();
159
if (
Log
.IsEnabled())
162
Log
.DescribeValidCertificates(ToCertificateDescription(validCertificates));
163
Log
.DescribeInvalidCertificates(ToCertificateDescription(invalidCertificates));
177
Log
.ListCertificatesEnd();
182
if (
Log
.IsEnabled())
184
Log
.ListCertificatesError(e.ToString());
247
if (
Log
.IsEnabled())
250
Log
.FilteredCertificates(ToCertificateDescription(filteredCertificates));
251
Log
.ExcludedCertificates(ToCertificateDescription(excludedCertificates));
273
if (
Log
.IsEnabled())
275
Log
.CorrectCertificateStateStart(GetDescription(candidate));
278
Log
.CorrectCertificateStateEnd();
282
if (
Log
.IsEnabled())
284
Log
.CorrectCertificateStateError(e.ToString());
298
if (
Log
.IsEnabled())
300
Log
.ValidCertificatesFound(ToCertificateDescription(certificates));
303
if (
Log
.IsEnabled())
305
Log
.SelectedCertificate(GetDescription(certificate));
312
Log
.NoValidCertificatesFound();
315
Log
.CreateDevelopmentCertificateStart();
321
if (
Log
.IsEnabled())
323
Log
.CreateDevelopmentCertificateError(e.ToString());
328
Log
.CreateDevelopmentCertificateEnd();
336
Log
.SaveCertificateInStoreError(e.ToString());
345
if (
Log
.IsEnabled())
347
Log
.CorrectCertificateStateStart(GetDescription(certificate));
350
Log
.CorrectCertificateStateEnd();
354
if (
Log
.IsEnabled())
356
Log
.CorrectCertificateStateError(e.ToString());
384
if (
Log
.IsEnabled())
386
Log
.ExportCertificateError(e.ToString());
447
Log
.ImportCertificateMissingFile(certificatePath);
454
if (
Log
.IsEnabled())
456
Log
.ImportCertificateExistingCertificates(ToCertificateDescription(certificates));
464
Log
.LoadCertificateStart(certificatePath);
466
if (
Log
.IsEnabled())
468
Log
.LoadCertificateEnd(GetDescription(certificate));
473
if (
Log
.IsEnabled())
475
Log
.LoadCertificateError(e.ToString());
485
if (
Log
.IsEnabled())
487
Log
.NoHttpsDevelopmentCertificate(GetDescription(certificate));
498
if (
Log
.IsEnabled())
500
Log
.SaveCertificateInStoreError(e.ToString());
513
if (
Log
.IsEnabled())
516
Log
.FilteredCertificates(ToCertificateDescription(filteredCertificates));
517
Log
.ExcludedCertificates(ToCertificateDescription(excludedCertificates));
549
if (
Log
.IsEnabled())
551
Log
.ExportCertificateStart(GetDescription(certificate), path, includePrivateKey);
556
Log
.NoPasswordForCertificate();
562
Log
.CreateExportCertificateDirectory(targetDirectoryPath);
628
catch (Exception e) when (
Log
.IsEnabled())
630
Log
.ExportCertificateError(e.ToString());
640
Log
.WriteCertificateToDisk(path);
651
catch (Exception ex) when (
Log
.IsEnabled())
653
Log
.WriteCertificateToDiskError(ex.ToString());
668
Log
.WritePemKeyToDisk(keyPath);
679
catch (Exception ex) when (
Log
.IsEnabled())
681
Log
.WritePemKeyToDiskError(ex.ToString());
752
if (
Log
.IsEnabled())
754
Log
.SaveCertificateInStoreStart(GetDescription(certificate), name, location);
759
Log
.SaveCertificateInStoreEnd();
767
if (
Log
.IsEnabled())
769
Log
.TrustCertificateStart(GetDescription(certificate));
772
Log
.TrustCertificateEnd();
775
catch (Exception ex) when (
Log
.IsEnabled())
777
Log
.TrustCertificateError(ex.ToString());
884
if (
Log
.IsEnabled())
886
Log
.RemoveCertificateFromUserStoreStart(GetDescription(certificate));
889
Log
.RemoveCertificateFromUserStoreEnd();
891
catch (Exception ex) when (
Log
.IsEnabled())
893
Log
.RemoveCertificateFromUserStoreError(ex.ToString());
src\Shared\CertificateGeneration\MacOSCertificateManager.cs (26)
91
Log
.MacOSCertificateAlreadyTrusted();
100
if (
Log
.IsEnabled())
102
Log
.MacOSTrustCommandStart($"{MacOSTrustCertificateCommandLine} {MacOSTrustCertificateCommandLineArguments}{tmpFile}");
109
Log
.MacOSTrustCommandError(process.ExitCode);
113
Log
.MacOSTrustCommandEnd();
146
Log
.MacOSAddCertificateToUserProfileDirError(candidate.Thumbprint, ex.Message);
200
Log
.MacOSRemoveCertificateTrustRuleStart(GetDescription(certificate));
219
Log
.MacOSRemoveCertificateTrustRuleError(process.ExitCode);
222
Log
.MacOSRemoveCertificateTrustRuleEnd();
252
if (
Log
.IsEnabled())
254
Log
.MacOSRemoveCertificateFromKeyChainStart(keychain, GetDescription(certificate));
264
Log
.MacOSRemoveCertificateFromKeyChainError(process.ExitCode);
271
Log
.MacOSRemoveCertificateFromKeyChainEnd();
315
if (
Log
.IsEnabled())
317
Log
.MacOSAddCertificateToUserProfileDirStart(MacOSUserKeychain, GetDescription(certificate));
327
Log
.MacOSAddCertificateToUserProfileDirError(certificate.Thumbprint, ex.Message);
330
Log
.MacOSAddCertificateToKeyChainEnd();
331
Log
.MacOSAddCertificateToUserProfileDirEnd();
353
if (
Log
.IsEnabled())
355
Log
.MacOSAddCertificateToKeyChainStart(MacOSUserKeychain, GetDescription(certificate));
365
Log
.MacOSAddCertificateToKeyChainError(process.ExitCode, output);
370
Log
.MacOSAddCertificateToKeyChainEnd();
436
Log
.MacOSDiskStoreDoesNotExist();
450
Log
.MacOSFileIsNotAValidCertificate(file);
471
Log
.MacOSRemoveCertificateFromUserProfileDirError(certificate.Thumbprint, ex.Message);
488
Log
.DirectoryPermissionsNotSecure(dirInfo.FullName);
src\Shared\CertificateGeneration\UnixCertificateManager.cs (51)
64
Log
.UnixOpenSslCertificateDirectoryOverrideIgnored(OpenSslCertDirectoryOverrideVariableName);
83
Log
.UnixNotTrustedByDotnet();
105
Log
.UnixNotTrustedByOpenSsl(OpenSslCertificateDirectoryVariableName);
132
Log
.UnixNotTrustedByOpenSsl(OpenSslCertificateDirectoryVariableName);
143
Log
.UnixMissingCertUtilCommand(CertUtilCommand);
157
Log
.UnixNotTrustedByNss(nssDb.Path, nssDb.IsFirefox ? BrowserFamilyFirefox : BrowserFamilyChromium);
222
Log
.UnixDotnetTrustSucceeded();
228
Log
.UnixDotnetTrustException(ex.Message);
253
Log
.UnixNotOverwritingCertificate(certPath);
262
Log
.UnixNotOverwritingCertificate(certPath);
288
Log
.UnixMissingOpenSslCommand(OpenSslCommand);
293
Log
.UnixOpenSslTrustSucceeded();
299
Log
.UnixOpenSslTrustFailed();
309
Log
.UnixMissingCertUtilCommand(CertUtilCommand);
319
Log
.UnixNssDbTrustSucceeded(nssDb.Path);
326
Log
.UnixNssDbTrustFailedWithProbableConflict(nssDb.Path, nssDb.IsFirefox ? BrowserFamilyFirefox : BrowserFamilyChromium);
332
Log
.UnixNssDbTrustFailed(nssDb.Path, nssDb.IsFirefox ? BrowserFamilyFirefox : BrowserFamilyChromium);
343
Log
.UnixTrustPartiallySucceeded();
392
Log
.UnixOpenSslCertificateDirectoryAlreadyConfigured(prettyCertDir, OpenSslCertificateDirectoryVariableName);
398
Log
.UnixSuggestAppendingToEnvironmentVariable(prettyCertDir, OpenSslCertificateDirectoryVariableName);
404
Log
.UnixSuggestSettingEnvironmentVariable(prettyCertDir, Path.Combine(openSslDir, "certs"), OpenSslCertificateDirectoryVariableName);
409
Log
.UnixSuggestSettingEnvironmentVariableWithoutExample(prettyCertDir, OpenSslCertificateDirectoryVariableName);
423
Log
.WslWindowsTrustSucceeded();
427
Log
.WslWindowsTrustFailed();
433
Log
.WslWindowsTrustException(ex.Message);
458
Log
.UnixDotnetUntrustException(ex.Message);
485
Log
.UnixMissingOpenSslCommand(OpenSslCommand);
490
Log
.UnixOpenSslUntrustSucceeded();
495
Log
.UnixOpenSslUntrustFailed();
501
Log
.UnixOpenSslUntrustSkipped(certPath);
510
Log
.UnixMissingCertUtilCommand(CertUtilCommand);
518
Log
.UnixNssDbUntrustSucceeded(nssDb.Path);
522
Log
.UnixNssDbUntrustFailed(nssDb.Path);
548
Log
.DirectoryPermissionsNotSecure(dirInfo.FullName);
723
Log
.UnixNssDbCheckException(nssDb.Path, ex.Message);
752
Log
.UnixNssDbAdditionException(nssDb.Path, ex.Message);
782
Log
.UnixNssDbRemovalException(nssDb.Path, ex.Message);
796
Log
.UnixNoFirefoxProfilesFound(firefoxDirectory);
802
Log
.UnixFirefoxProfileEnumerationException(firefoxDirectory, ex.Message);
812
Log
.UnixOpenSslCertificateDirectoryOverridePresent(OpenSslCertDirectoryOverrideVariableName);
828
Log
.UnixCertificateFileDeletionException(certPath, ex.Message);
844
Log
.UnixNssDbOverridePresent(NssDbOverrideVariableName);
854
Log
.UnixNssDbDoesNotExist(nssDb, NssDbOverrideVariableName);
882
Log
.UnixHomeDirectoryDoesNotExist(homeDirectory, Environment.UserName);
948
Log
.UnixOpenSslVersionFailed();
955
Log
.UnixOpenSslVersionParsingFailed();
964
Log
.UnixOpenSslVersionException(ex.Message);
992
Log
.UnixOpenSslHashFailed(certificatePath);
1001
Log
.UnixOpenSslHashException(certificatePath, ex.Message);
1069
Log
.UnixOpenSslRehashTooManyHashes(cert.FullName, hash, MaxHashCollisions);
1076
Log
.UnixOpenSslRehashException(ex.Message);
src\Shared\CertificateGeneration\WindowsCertificateManager.cs (7)
81
Log
.WindowsCertificateAlreadyTrusted();
87
Log
.WindowsAddCertificateToRootStore();
96
Log
.WindowsCertificateTrustCanceled();
103
Log
.WindowsRemoveCertificateFromRootStoreStart();
114
Log
.WindowsRemoveCertificateFromRootStoreNotFound();
117
Log
.WindowsRemoveCertificateFromRootStoreEnd();
163
Log
.DirectoryPermissionsNotSecure(dirInfo.FullName);