154 references to Log
Templates.Blazor.WebAssembly.Tests (154)
src\Shared\CertificateGeneration\CertificateManager.cs (75)
87
Log
.ListCertificatesStart(location, storeName);
98
if (
Log
.IsEnabled())
100
Log
.DescribeFoundCertificates(ToCertificateDescription(matchingCertificates));
107
Log
.CheckCertificatesValidity();
114
if (
Log
.IsEnabled())
117
Log
.DescribeValidCertificates(ToCertificateDescription(validCertificates));
118
Log
.DescribeInvalidCertificates(ToCertificateDescription(invalidCertificates));
132
Log
.ListCertificatesEnd();
137
if (
Log
.IsEnabled())
139
Log
.ListCertificatesError(e.ToString());
202
if (
Log
.IsEnabled())
205
Log
.FilteredCertificates(ToCertificateDescription(filteredCertificates));
206
Log
.ExcludedCertificates(ToCertificateDescription(excludedCertificates));
228
if (
Log
.IsEnabled())
230
Log
.CorrectCertificateStateStart(GetDescription(candidate));
233
Log
.CorrectCertificateStateEnd();
237
if (
Log
.IsEnabled())
239
Log
.CorrectCertificateStateError(e.ToString());
253
if (
Log
.IsEnabled())
255
Log
.ValidCertificatesFound(ToCertificateDescription(certificates));
258
if (
Log
.IsEnabled())
260
Log
.SelectedCertificate(GetDescription(certificate));
267
Log
.NoValidCertificatesFound();
270
Log
.CreateDevelopmentCertificateStart();
276
if (
Log
.IsEnabled())
278
Log
.CreateDevelopmentCertificateError(e.ToString());
283
Log
.CreateDevelopmentCertificateEnd();
291
Log
.SaveCertificateInStoreError(e.ToString());
300
if (
Log
.IsEnabled())
302
Log
.CorrectCertificateStateStart(GetDescription(certificate));
305
Log
.CorrectCertificateStateEnd();
309
if (
Log
.IsEnabled())
311
Log
.CorrectCertificateStateError(e.ToString());
339
if (
Log
.IsEnabled())
341
Log
.ExportCertificateError(e.ToString());
402
Log
.ImportCertificateMissingFile(certificatePath);
409
if (
Log
.IsEnabled())
411
Log
.ImportCertificateExistingCertificates(ToCertificateDescription(certificates));
419
Log
.LoadCertificateStart(certificatePath);
421
if (
Log
.IsEnabled())
423
Log
.LoadCertificateEnd(GetDescription(certificate));
428
if (
Log
.IsEnabled())
430
Log
.LoadCertificateError(e.ToString());
440
if (
Log
.IsEnabled())
442
Log
.NoHttpsDevelopmentCertificate(GetDescription(certificate));
453
if (
Log
.IsEnabled())
455
Log
.SaveCertificateInStoreError(e.ToString());
468
if (
Log
.IsEnabled())
471
Log
.FilteredCertificates(ToCertificateDescription(filteredCertificates));
472
Log
.ExcludedCertificates(ToCertificateDescription(excludedCertificates));
504
if (
Log
.IsEnabled())
506
Log
.ExportCertificateStart(GetDescription(certificate), path, includePrivateKey);
511
Log
.NoPasswordForCertificate();
517
Log
.CreateExportCertificateDirectory(targetDirectoryPath);
583
catch (Exception e) when (
Log
.IsEnabled())
585
Log
.ExportCertificateError(e.ToString());
595
Log
.WriteCertificateToDisk(path);
606
catch (Exception ex) when (
Log
.IsEnabled())
608
Log
.WriteCertificateToDiskError(ex.ToString());
623
Log
.WritePemKeyToDisk(keyPath);
634
catch (Exception ex) when (
Log
.IsEnabled())
636
Log
.WritePemKeyToDiskError(ex.ToString());
701
if (
Log
.IsEnabled())
703
Log
.SaveCertificateInStoreStart(GetDescription(certificate), name, location);
708
Log
.SaveCertificateInStoreEnd();
716
if (
Log
.IsEnabled())
718
Log
.TrustCertificateStart(GetDescription(certificate));
721
Log
.TrustCertificateEnd();
724
catch (Exception ex) when (
Log
.IsEnabled())
726
Log
.TrustCertificateError(ex.ToString());
819
if (
Log
.IsEnabled())
821
Log
.RemoveCertificateFromUserStoreStart(GetDescription(certificate));
824
Log
.RemoveCertificateFromUserStoreEnd();
826
catch (Exception ex) when (
Log
.IsEnabled())
828
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);
76
Log
.UnixNotTrustedByDotnet();
86
Log
.UnixNotTrustedByOpenSsl(OpenSslCertificateDirectoryVariableName);
113
Log
.UnixNotTrustedByOpenSsl(OpenSslCertificateDirectoryVariableName);
124
Log
.UnixMissingCertUtilCommand(CertUtilCommand);
138
Log
.UnixNotTrustedByNss(nssDb.Path, nssDb.IsFirefox ? BrowserFamilyFirefox : BrowserFamilyChromium);
203
Log
.UnixDotnetTrustSucceeded();
209
Log
.UnixDotnetTrustException(ex.Message);
234
Log
.UnixNotOverwritingCertificate(certPath);
243
Log
.UnixNotOverwritingCertificate(certPath);
269
Log
.UnixMissingOpenSslCommand(OpenSslCommand);
274
Log
.UnixOpenSslTrustSucceeded();
280
Log
.UnixOpenSslTrustFailed();
290
Log
.UnixMissingCertUtilCommand(CertUtilCommand);
300
Log
.UnixNssDbTrustSucceeded(nssDb.Path);
307
Log
.UnixNssDbTrustFailedWithProbableConflict(nssDb.Path, nssDb.IsFirefox ? BrowserFamilyFirefox : BrowserFamilyChromium);
313
Log
.UnixNssDbTrustFailed(nssDb.Path, nssDb.IsFirefox ? BrowserFamilyFirefox : BrowserFamilyChromium);
324
Log
.UnixTrustPartiallySucceeded();
346
Log
.UnixSuggestSettingEnvironmentVariable(prettyCertDir, Path.Combine(openSslDir, "certs"), OpenSslCertificateDirectoryVariableName);
350
Log
.UnixSuggestSettingEnvironmentVariableWithoutExample(prettyCertDir, OpenSslCertificateDirectoryVariableName);
374
Log
.UnixDotnetUntrustException(ex.Message);
401
Log
.UnixMissingOpenSslCommand(OpenSslCommand);
406
Log
.UnixOpenSslUntrustSucceeded();
411
Log
.UnixOpenSslUntrustFailed();
417
Log
.UnixOpenSslUntrustSkipped(certPath);
426
Log
.UnixMissingCertUtilCommand(CertUtilCommand);
434
Log
.UnixNssDbUntrustSucceeded(nssDb.Path);
438
Log
.UnixNssDbUntrustFailed(nssDb.Path);
464
Log
.DirectoryPermissionsNotSecure(dirInfo.FullName);
577
Log
.UnixNssDbCheckException(nssDb.Path, ex.Message);
606
Log
.UnixNssDbAdditionException(nssDb.Path, ex.Message);
636
Log
.UnixNssDbRemovalException(nssDb.Path, ex.Message);
650
Log
.UnixNoFirefoxProfilesFound(firefoxDirectory);
656
Log
.UnixFirefoxProfileEnumerationException(firefoxDirectory, ex.Message);
666
Log
.UnixOpenSslCertificateDirectoryOverridePresent(OpenSslCertDirectoryOverrideVariableName);
682
Log
.UnixCertificateFileDeletionException(certPath, ex.Message);
698
Log
.UnixNssDbOverridePresent(NssDbOverrideVariableName);
708
Log
.UnixNssDbDoesNotExist(nssDb, NssDbOverrideVariableName);
736
Log
.UnixHomeDirectoryDoesNotExist(homeDirectory, Environment.UserName);
802
Log
.UnixOpenSslVersionFailed();
809
Log
.UnixOpenSslVersionParsingFailed();
818
Log
.UnixOpenSslVersionException(ex.Message);
846
Log
.UnixOpenSslHashFailed(certificatePath);
855
Log
.UnixOpenSslHashException(certificatePath, ex.Message);
927
Log
.UnixOpenSslRehashTooManyHashes(cert.FullName, hash, MaxHashCollisions);
934
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);