154 references to Log
Templates.Blazor.Tests (154)
src\Shared\CertificateGeneration\CertificateManager.cs (75)
128
Log
.ListCertificatesStart(location, storeName);
139
if (
Log
.IsEnabled())
141
Log
.DescribeFoundCertificates(ToCertificateDescription(matchingCertificates));
148
Log
.CheckCertificatesValidity();
155
if (
Log
.IsEnabled())
158
Log
.DescribeValidCertificates(ToCertificateDescription(validCertificates));
159
Log
.DescribeInvalidCertificates(ToCertificateDescription(invalidCertificates));
173
Log
.ListCertificatesEnd();
178
if (
Log
.IsEnabled())
180
Log
.ListCertificatesError(e.ToString());
243
if (
Log
.IsEnabled())
246
Log
.FilteredCertificates(ToCertificateDescription(filteredCertificates));
247
Log
.ExcludedCertificates(ToCertificateDescription(excludedCertificates));
269
if (
Log
.IsEnabled())
271
Log
.CorrectCertificateStateStart(GetDescription(candidate));
274
Log
.CorrectCertificateStateEnd();
278
if (
Log
.IsEnabled())
280
Log
.CorrectCertificateStateError(e.ToString());
294
if (
Log
.IsEnabled())
296
Log
.ValidCertificatesFound(ToCertificateDescription(certificates));
299
if (
Log
.IsEnabled())
301
Log
.SelectedCertificate(GetDescription(certificate));
308
Log
.NoValidCertificatesFound();
311
Log
.CreateDevelopmentCertificateStart();
317
if (
Log
.IsEnabled())
319
Log
.CreateDevelopmentCertificateError(e.ToString());
324
Log
.CreateDevelopmentCertificateEnd();
332
Log
.SaveCertificateInStoreError(e.ToString());
341
if (
Log
.IsEnabled())
343
Log
.CorrectCertificateStateStart(GetDescription(certificate));
346
Log
.CorrectCertificateStateEnd();
350
if (
Log
.IsEnabled())
352
Log
.CorrectCertificateStateError(e.ToString());
380
if (
Log
.IsEnabled())
382
Log
.ExportCertificateError(e.ToString());
443
Log
.ImportCertificateMissingFile(certificatePath);
450
if (
Log
.IsEnabled())
452
Log
.ImportCertificateExistingCertificates(ToCertificateDescription(certificates));
460
Log
.LoadCertificateStart(certificatePath);
462
if (
Log
.IsEnabled())
464
Log
.LoadCertificateEnd(GetDescription(certificate));
469
if (
Log
.IsEnabled())
471
Log
.LoadCertificateError(e.ToString());
481
if (
Log
.IsEnabled())
483
Log
.NoHttpsDevelopmentCertificate(GetDescription(certificate));
494
if (
Log
.IsEnabled())
496
Log
.SaveCertificateInStoreError(e.ToString());
509
if (
Log
.IsEnabled())
512
Log
.FilteredCertificates(ToCertificateDescription(filteredCertificates));
513
Log
.ExcludedCertificates(ToCertificateDescription(excludedCertificates));
545
if (
Log
.IsEnabled())
547
Log
.ExportCertificateStart(GetDescription(certificate), path, includePrivateKey);
552
Log
.NoPasswordForCertificate();
558
Log
.CreateExportCertificateDirectory(targetDirectoryPath);
624
catch (Exception e) when (
Log
.IsEnabled())
626
Log
.ExportCertificateError(e.ToString());
636
Log
.WriteCertificateToDisk(path);
647
catch (Exception ex) when (
Log
.IsEnabled())
649
Log
.WriteCertificateToDiskError(ex.ToString());
664
Log
.WritePemKeyToDisk(keyPath);
675
catch (Exception ex) when (
Log
.IsEnabled())
677
Log
.WritePemKeyToDiskError(ex.ToString());
746
if (
Log
.IsEnabled())
748
Log
.SaveCertificateInStoreStart(GetDescription(certificate), name, location);
753
Log
.SaveCertificateInStoreEnd();
761
if (
Log
.IsEnabled())
763
Log
.TrustCertificateStart(GetDescription(certificate));
766
Log
.TrustCertificateEnd();
769
catch (Exception ex) when (
Log
.IsEnabled())
771
Log
.TrustCertificateError(ex.ToString());
864
if (
Log
.IsEnabled())
866
Log
.RemoveCertificateFromUserStoreStart(GetDescription(certificate));
869
Log
.RemoveCertificateFromUserStoreEnd();
871
catch (Exception ex) when (
Log
.IsEnabled())
873
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);