154 references to Log
Templates.Blazor.WebAssembly.Tests (154)
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 (46)
59
Log
.UnixOpenSslCertificateDirectoryOverrideIgnored(OpenSslCertDirectoryOverrideVariableName);
78
Log
.UnixNotTrustedByDotnet();
100
Log
.UnixNotTrustedByOpenSsl(OpenSslCertificateDirectoryVariableName);
127
Log
.UnixNotTrustedByOpenSsl(OpenSslCertificateDirectoryVariableName);
138
Log
.UnixMissingCertUtilCommand(CertUtilCommand);
152
Log
.UnixNotTrustedByNss(nssDb.Path, nssDb.IsFirefox ? BrowserFamilyFirefox : BrowserFamilyChromium);
217
Log
.UnixDotnetTrustSucceeded();
223
Log
.UnixDotnetTrustException(ex.Message);
248
Log
.UnixNotOverwritingCertificate(certPath);
257
Log
.UnixNotOverwritingCertificate(certPath);
283
Log
.UnixMissingOpenSslCommand(OpenSslCommand);
288
Log
.UnixOpenSslTrustSucceeded();
294
Log
.UnixOpenSslTrustFailed();
304
Log
.UnixMissingCertUtilCommand(CertUtilCommand);
314
Log
.UnixNssDbTrustSucceeded(nssDb.Path);
321
Log
.UnixNssDbTrustFailedWithProbableConflict(nssDb.Path, nssDb.IsFirefox ? BrowserFamilyFirefox : BrowserFamilyChromium);
327
Log
.UnixNssDbTrustFailed(nssDb.Path, nssDb.IsFirefox ? BrowserFamilyFirefox : BrowserFamilyChromium);
338
Log
.UnixTrustPartiallySucceeded();
360
Log
.UnixSuggestSettingEnvironmentVariable(prettyCertDir, Path.Combine(openSslDir, "certs"), OpenSslCertificateDirectoryVariableName);
364
Log
.UnixSuggestSettingEnvironmentVariableWithoutExample(prettyCertDir, OpenSslCertificateDirectoryVariableName);
388
Log
.UnixDotnetUntrustException(ex.Message);
415
Log
.UnixMissingOpenSslCommand(OpenSslCommand);
420
Log
.UnixOpenSslUntrustSucceeded();
425
Log
.UnixOpenSslUntrustFailed();
431
Log
.UnixOpenSslUntrustSkipped(certPath);
440
Log
.UnixMissingCertUtilCommand(CertUtilCommand);
448
Log
.UnixNssDbUntrustSucceeded(nssDb.Path);
452
Log
.UnixNssDbUntrustFailed(nssDb.Path);
478
Log
.DirectoryPermissionsNotSecure(dirInfo.FullName);
591
Log
.UnixNssDbCheckException(nssDb.Path, ex.Message);
620
Log
.UnixNssDbAdditionException(nssDb.Path, ex.Message);
650
Log
.UnixNssDbRemovalException(nssDb.Path, ex.Message);
664
Log
.UnixNoFirefoxProfilesFound(firefoxDirectory);
670
Log
.UnixFirefoxProfileEnumerationException(firefoxDirectory, ex.Message);
680
Log
.UnixOpenSslCertificateDirectoryOverridePresent(OpenSslCertDirectoryOverrideVariableName);
696
Log
.UnixCertificateFileDeletionException(certPath, ex.Message);
712
Log
.UnixNssDbOverridePresent(NssDbOverrideVariableName);
722
Log
.UnixNssDbDoesNotExist(nssDb, NssDbOverrideVariableName);
750
Log
.UnixHomeDirectoryDoesNotExist(homeDirectory, Environment.UserName);
816
Log
.UnixOpenSslVersionFailed();
823
Log
.UnixOpenSslVersionParsingFailed();
832
Log
.UnixOpenSslVersionException(ex.Message);
860
Log
.UnixOpenSslHashFailed(certificatePath);
869
Log
.UnixOpenSslHashException(certificatePath, ex.Message);
937
Log
.UnixOpenSslRehashTooManyHashes(cert.FullName, hash, MaxHashCollisions);
944
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);