API Reference
InternalLogger
Internal logger that allows to write to console, error or wherever else is needed
Inheritance
- Object
- InternalLogger
Remarks
Consumers subscribe to events to integrate logging with other systems while optional console output aids troubleshooting during development.
Usage
This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.
Accepted by parameters
- Method AgentReadinessAnalysis.AnalyzeAsync
- Method ApexAddressAnalysis.AnalyzeApexAnswers
- Method ApexAddressAnalysis.AnalyzeAsnAndRpkiAsync
- Method ApexAddressAnalysis.AnalyzeAsync
- Method ApexAddressAnalysis.AnalyzeReverseDnsAsync
- Method ARCAnalysis.Analyze
- Method AssessmentCollector.ForAnalysis
- Method AutodiscoverAnalysis.Analyze
- Method AutodiscoverHttpAnalysis.Analyze
- Method BimiAnalysis.AnalyzeBimiRecords
- Method BimiAnalysis.ParseBimiHeader
- Method CAAAnalysis.AnalyzeCAARecords
- Method CAAAnalysis.GenerateLists
- Method CertificateAnalysis.AnalyzeUrl
- Method CertificateInventoryCapture.CaptureAsync
- Method CertificateMonitor.Analyze
- Method CertificateMonitor.SaveInventorySnapshot
- Method CertificateMonitor.Start
- Method CertificateTransparencyTimelineAnalysis.AnalyzeAsync
- Method CnameAnalysis.Analyze
- Method ContactInfoAnalysis.AnalyzeContactRecords
- Method DANEAnalysis.AnalyzeDANERecords
- Method DanglingCnameAnalysis.Analyze
- Method DirectoryExposureAnalysis.Analyze
- Method DkimAnalysis.AnalyzeAdspRecord
- Method DkimAnalysis.AnalyzeDkimRecords
- Method DkimAnalysis.QueryWellKnownSelectors
- Method DmarcAnalysis.AnalyzeDmarcRecords
- Method DnsAmplificationAnalysis.Analyze
- Method DNSBLAnalysis.AnalyzeDNSBLRecords
- Method DNSBLAnalysis.AnalyzeDNSBLRecordsMany
- Method DNSBLAnalysis.AnalyzeDomainBlocklists
- Method DNSBLAnalysis.AnalyzeDomainBlocklistsMany
- Method DNSBLAnalysis.IsDomainListedAsync
- Method DnsHealthAnalysis.Analyze
- Method DnsInventoryAnalysis.AnalyzeAsync
- Method DnsOverTlsAnalysis.Analyze
- Method DnsPropagationAnalysis.ValidateServerAsnsAsync
- Method DnsSecAnalysis.Analyze
- Method DnsSecAnalysis.DownloadTrustAnchors
- Method DnsTraceAnalysis.AnalyzeAsync
- Method DnsTtlAnalysis.Analyze
- Method DnsTtlAnalysis.AnalyzeUniformityAcrossServers
- Method DomainDetectiveOptionalFeatures.RegisterCtSqlExactMetadataProvider
- Constructor DomainHealthCheck.DomainHealthCheck
- Method EdnsSupportAnalysis.Analyze
- Method EmailAddressValidationAnalysis.AnalyzeAsync
- Method FCrDnsAnalysis.Analyze
- Method FlatteningServiceAnalysis.Analyze
- Method HPKPAnalysis.AnalyzeUrl
- Method HttpAnalysis.AnalyzeUrl
- Method IdpInfoAnalysis.AnalyzeAsync
- Method IMAPTLSAnalysis.AnalyzeServer
- Method IMAPTLSAnalysis.AnalyzeServers
- Method IpEnrichmentAnalysis.AnalyzeAsync
- Method IPNeighborAnalysis.Analyze
- Method IPNeighborAnalysis.AnalyzeMx
- Constructor MailDomainClassifier.MailDomainClassifier
- Method MailLatencyAnalysis.AnalyzeServer
- Method MailLatencyAnalysis.AnalyzeServers
- Method MailTlsAnalysis.AnalyzeServer
- Method MailTlsAnalysis.AnalyzeServers
- Method MessageHeaderAnalysis.CompareExpectedMx
- Method MessageHeaderAnalysis.Parse
- Method Microsoft365TenantAnalysis.Analyze
- Method Microsoft365TenantAnalysis.ProbeAuthenticationAsync
- Method MTASTSAnalysis.AnalyzeDnsBootstrap
- Method MTASTSAnalysis.AnalyzePolicy
- Method MXAnalysis.AnalyzeMxRecords
- Method OpenRelayNarrative.Build
- Method TlsRptNarrative.Build
- Method ZoneTransferNarrative.Build
- Method PingTraceroute.PingAsync
- Method PingTraceroute.TracerouteAsync
- Method NSAnalysis.AnalyzeNsRecords
- Method NSAnalysis.AnalyzeParentDelegation
- Method NSAnalysis.QueryParentNsGlue
- Method NSAnalysis.QueryRootServers
- Method NSAnalysis.TestRecursion
- Method NtpAnalysis.AnalyzeServer
- Method NtpAnalysis.AnalyzeServer
- Method NtpAnalysis.AnalyzeServers
- Method NtpAnalysis.AnalyzeServers
- Method OpenRelayAnalysis.AnalyzeServer
- Method OpenRelayAnalysis.AnalyzeServers
- Method OpenRelayAnalysis.TryRelay
- Method OpenResolverAnalysis.AnalyzeServer
- Method OpenResolverAnalysis.AnalyzeServers
- Method POP3TLSAnalysis.AnalyzeServer
- Method POP3TLSAnalysis.AnalyzeServers
- Method PortAvailabilityAnalysis.AnalyzeServer
- Method PortAvailabilityAnalysis.AnalyzeServers
- Method PortScanAnalysis.Scan
- Method PortScanAnalysis.Scan
- Constructor ProgressHub.ProgressHub
- Method RdapAnalysis.Analyze
- Method ReverseDnsAnalysis.AnalyzeHosts
- Method RobotsTxtAnalysis.AnalyzeAsync
- Method RPKIAnalysis.Analyze
- Method SecurityTXTAnalysis.AnalyzeSecurityTxtRecord
- Method SitemapAnalysis.AnalyzeAsync
- Method SMIMEAAnalysis.AnalyzeSMIMEARecords
- Method SmtpAuthAnalysis.AnalyzeServer
- Method SmtpAuthAnalysis.AnalyzeServers
- Method SMTPBannerAnalysis.AnalyzeServer
- Method SMTPBannerAnalysis.AnalyzeServers
- Method SmtpRecipientAcceptanceAnalysis.AnalyzeServers
- Method SMTPTLSAnalysis.AnalyzeServer
- Method SMTPTLSAnalysis.AnalyzeServers
- Method SnmpAnalysis.AnalyzeServer
- Method SnmpAnalysis.AnalyzeServers
- Method SOAAnalysis.AnalyzeSoaRecords
- Method SpfAnalysis.AnalyzeSpfRecords
- Method SpfAnalysis.ComputeEffectiveSpfSendsAsync
- Method SpfAnalysis.EvaluateHostAsync
- Method SpfAnalysis.GetExplanationText
- Method SpfAnalysis.GetFlattenedIpAddresses
- Method SpfAnalysis.GetFlattenedIpAnalysis
- Method SpfAnalysis.GetFlattenedSpf
- Method SpfAnalysis.GetFlattenedSpfTree
- Method SpfAnalysis.PopulateProvenanceAsync
- Method SpfAnalysis.ValidateMacros
- Method SpfAnalysis.WarnIfSpfRecordChunksTooLong
- Method STARTTLSAnalysis.AnalyzeServer
- Method STARTTLSAnalysis.AnalyzeServers
- Method STARTTLSAnalysis.CheckStartTls
- Method SubdomainEnumeration.Enumerate
- Method SubdomainsAnalysis.AnalyzeAsync
- Method TakeoverCnameAnalysis.Analyze
- Method ThreatFeedAnalysis.Analyze
- Method ThreatIntelAnalysis.Analyze
- Method TlsAnalysis.AnalyzeServer
- Method TlsAnalysis.AnalyzeServers
- Method TLSRPTAnalysis.AnalyzeTlsRptRecords
- Method TyposquattingAnalysis.Analyze
- Method TyposquattingEnrichmentPipeline.EnrichAsync
- Method UptimeProbeAnalysis.ProbeAsync
- Method WebAvailabilityAnalysis.AnalyzeAsync
- Method WebStaticScanAnalysis.Analyze
- Method WildcardDnsAnalysis.Analyze
- Method ZoneTransferAnalysis.AnalyzeServers
Constructors
public InternalLogger(Boolean isVerbose = false) #Initialize logger
Parameters
- isVerbose System.Boolean = false
Methods
public Void ClearLoggedMessages() #VoidClears cached messages to allow duplicates to be logged again.
public Void WriteDebug(String message, params Object[] args) #VoidExecutes the write debug operation.
Parameters
- message System.String
- args System.Object[]
public Void WriteErrorCode(String code, String message, params Object[] args) #VoidWrites an error with a structured code.
Parameters
- code System.String
- message System.String
- args System.Object[]
public Void WriteInformation(String message, params Object[] args) #VoidExecutes the write information operation.
Parameters
- message System.String
- args System.Object[]
public Void WriteInformationCode(String code, String message, params Object[] args) #VoidWrites an information message with a structured code.
Parameters
- code System.String
- message System.String
- args System.Object[]
public Void WriteProgress(String activity, String currentOperation, Double percentCompleted, Nullable<Int32> currentSteps = null, Nullable<Int32> totalSteps = null) #VoidExecutes the write progress operation.
Parameters
- activity System.String
- currentOperation System.String
- percentCompleted System.Double
- currentSteps System.Nullable{System.Int32} = null
- totalSteps System.Nullable{System.Int32} = null
public Void WriteWarningCode(String code, String message, params Object[] args) #VoidWrites a warning with a structured code.
Parameters
- code System.String
- message System.String
- args System.Object[]
Inherited Methods
public override Boolean Equals(Object obj) #BooleanParameters
- obj Object
Properties
public Boolean IsVerbose { get; set; } #If true, will write verbose messages to console
public Boolean IsError { get; set; } #If true, will write error messages to console
public Boolean IsWarning { get; set; } #If true, will write warning messages to console
public Boolean IsDebug { get; set; } #If true, will write debug messages to console
public Boolean IsInformation { get; set; } #If true, will write information messages to console
public Boolean IsProgress { get; set; } #if true, will write progress messages to console
Events
public event EventHandler<LogEventArgs> OnVerboseMessage #Define Verbose message event
public event EventHandler<LogEventArgs> OnWarningMessage #Define Warning message event
public event EventHandler<LogEventArgs> OnErrorMessage #Define Error message event
public event EventHandler<LogEventArgs> OnDebugMessage #Define Debug message event
public event EventHandler<LogEventArgs> OnProgressMessage #Define Progress message event
public event EventHandler<LogEventArgs> OnInformationMessage #Define Information message event